Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008135/0.0008135, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009741/0.0009741, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8821/0.8821, allocations: 173.4 MB / 200.5 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 318.5 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.692e-05/1.818e-05, allocations: 2.281 kB / 318.5 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003044/0.003062, allocations: 2.687 MB / 321.2 MB, free: 3.613 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.004192, allocations: 0.6739 MB / 321.8 MB, free: 2.934 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.004336, allocations: 7.938 kB / 321.8 MB, free: 2.926 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.00448, allocations: 51.5 kB / 321.9 MB, free: 2.875 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.004651, allocations: 107.1 kB / 322 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.004929, allocations: 111.8 kB / 322.1 MB, free: 2.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003255/0.005254, allocations: 406.2 kB / 322.5 MB, free: 2.262 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.005434, allocations: 92.42 kB / 322.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002091/0.005643, allocations: 215.5 kB / 322.8 MB, free: 1.961 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.00578, allocations: 131.6 kB / 322.9 MB, free: 1.832 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.235e-05/0.005823, allocations: 36 kB / 323 MB, free: 1.797 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.311e-05/0.005856, allocations: 40 kB / 323 MB, free: 1.758 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.253e-05/0.005908, allocations: 79.67 kB / 323.1 MB, free: 1.68 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.429e-05/0.006003, allocations: 119.7 kB / 323.2 MB, free: 1.562 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.006336, allocations: 406.7 kB / 323.6 MB, free: 1.164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.006339, allocations: 0 / 323.6 MB, free: 1.164 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.00634, allocations: 0 / 323.6 MB, free: 1.164 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.006346, allocations: 0 / 323.6 MB, free: 1.164 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001005/0.007351, allocations: 0.6091 MB / 324.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.007395, allocations: 12.92 kB / 324.2 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.294e-05/0.007448, allocations: 58.72 kB / 324.3 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.712e-05/0.007505, allocations: 40.7 kB / 324.3 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.007864, allocations: 237.2 kB / 324.6 MB, free: 144 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.947e-05/0.007883, allocations: 20.88 kB / 324.6 MB, free: 124 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/0.00791, allocations: 24.38 kB / 324.6 MB, free: 100 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004626/0.008373, allocations: 319.2 kB / 324.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.008384, allocations: 192 / 324.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.008407, allocations: 16.12 kB / 324.9 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.008418, allocations: 8 kB / 324.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005356/0.008954, allocations: 273.8 kB / 325.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.01034, allocations: 1.026 MB / 326.2 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005038/0.01084, allocations: 202.5 kB / 326.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.01101, allocations: 88.78 kB / 326.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.01103, allocations: 4 kB / 326.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002769/0.01131, allocations: 157.1 kB / 326.7 MB, free: 13.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.01131, allocations: 0 / 326.7 MB, free: 13.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0007223/0.01203, allocations: 338.1 kB / 327 MB, free: 13.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.01208, allocations: 81.11 kB / 327.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.01232, allocations: 332.4 kB / 327.4 MB, free: 13.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.01234, allocations: 29.7 kB / 327.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.01245, allocations: 219.8 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.01248, allocations: 35.73 kB / 327.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.55e-05/0.01254, allocations: 49.89 kB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.01263, allocations: 338.8 kB / 328.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.01283, allocations: 133.8 kB / 328.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002336/0.01306, allocations: 236.7 kB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004071/0.01347, allocations: 338.8 kB / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.01348, allocations: 0 / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005694/0.01405, allocations: 433.5 kB / 329.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.01408, allocations: 41.62 kB / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.01409, allocations: 4 kB / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001369/0.01422, allocations: 28.84 kB / 329.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.01436, allocations: 63.89 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007224/0.01508, allocations: 1.287 MB / 330.6 MB, free: 9.637 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.01525, allocations: 55.7 kB / 330.7 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.01527, allocations: 27.92 kB / 330.7 MB, free: 9.555 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.0154, allocations: 149.9 kB / 330.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.235e-05/0.01543, allocations: 23.86 kB / 330.9 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.375e-05/0.01548, allocations: 38.59 kB / 330.9 MB, free: 9.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.01548, allocations: 4 kB / 330.9 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.01549, allocations: 0 / 330.9 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.01549, allocations: 0 / 330.9 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003171/0.01581, allocations: 390.3 kB / 331.3 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.01581, allocations: 0 / 331.3 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.13e-05/0.01589, allocations: 36 kB / 331.3 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.737e-05/0.01596, allocations: 28.83 kB / 331.3 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.01597, allocations: 4.375 kB / 331.3 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000631/0.0166, allocations: 1.287 MB / 332.6 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.0166, allocations: 0 / 332.6 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000384/0.01698, allocations: 266.3 kB / 332.9 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.645e-05/0.01702, allocations: 31.86 kB / 332.9 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.01704, allocations: 15.98 kB / 332.9 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.01714, allocations: 19.97 kB / 333 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.112e-05/0.0172, allocations: 19.97 kB / 333 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.01721, allocations: 4 kB / 333 MB, free: 7.059 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001772/0.01739, allocations: 235 kB / 333.2 MB, free: 6.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01739, allocations: 0 / 333.2 MB, free: 6.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002224/0.01761, allocations: 67.89 kB / 333.3 MB, free: 6.762 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005735/0.01818, allocations: 0.8051 MB / 334.1 MB, free: 5.918 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005758/0.01876, allocations: 428.4 kB / 334.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.01876, allocations: 4.062 kB / 334.5 MB, free: 5.465 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002371/0.019, allocations: 206.6 kB / 334.7 MB, free: 5.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.01923, allocations: 69 kB / 334.8 MB, free: 5.188 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003182/0.02241, allocations: 3.261 MB / 338 MB, free: 1.699 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.291e-05/0.02251, allocations: 150.7 kB / 338.2 MB, free: 1.531 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.728e-05/0.0226, allocations: 38.95 kB / 338.2 MB, free: 1.496 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.02271, allocations: 88.47 kB / 338.3 MB, free: 1.41 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.02271, allocations: 0 / 338.3 MB, free: 1.41 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01977/0.04248, allocations: 7.01 MB / 345.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.938/6.981, allocations: 4.062 kB / 345.3 MB, free: 10.57 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.63059142883867]