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.001347/0.001347, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.001444/0.001444, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.9342/0.9342, allocations: 173.4 MB / 200.5 MB, free: 9.43 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 2.685e-06/2.685e-06, allocations: 0 / 318.5 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.184e-05/2.453e-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.003596/0.003621, allocations: 2.679 MB / 321.2 MB, free: 3.621 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009354/0.004556, allocations: 0.6855 MB / 321.8 MB, free: 2.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.004679, allocations: 8 kB / 321.9 MB, free: 2.922 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.004814, allocations: 43.52 kB / 321.9 MB, free: 2.879 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.004959, allocations: 107 kB / 322 MB, free: 2.773 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002438/0.005203, allocations: 115.8 kB / 322.1 MB, free: 2.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002926/0.005496, allocations: 406.2 kB / 322.5 MB, free: 2.262 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.005657, allocations: 92.44 kB / 322.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.005836, allocations: 223.5 kB / 322.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.005964, allocations: 127.6 kB / 322.9 MB, free: 1.828 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.023e-05/0.006004, allocations: 36 kB / 323 MB, free: 1.793 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.229e-05/0.006036, allocations: 36 kB / 323 MB, free: 1.758 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.29e-05/0.006089, allocations: 75.69 kB / 323.1 MB, free: 1.684 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.858e-05/0.006178, allocations: 123.7 kB / 323.2 MB, free: 1.562 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.006478, allocations: 402.8 kB / 323.6 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.006482, allocations: 0 / 323.6 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.006483, allocations: 0 / 323.6 MB, free: 1.168 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.006488, allocations: 0 / 323.6 MB, free: 1.168 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.0008872/0.007376, allocations: 0.6131 MB / 324.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.007416, allocations: 12.92 kB / 324.2 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.073e-05/0.007467, allocations: 58.72 kB / 324.3 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.676e-05/0.007524, allocations: 40.7 kB / 324.3 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.007865, allocations: 241.1 kB / 324.6 MB, free: 140 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.007884, allocations: 16.88 kB / 324.6 MB, free: 124 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.007914, allocations: 24.38 kB / 324.6 MB, free: 100 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.008392, allocations: 323.2 kB / 324.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.008403, allocations: 192 / 324.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.008425, allocations: 12.12 kB / 324.9 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.008435, allocations: 8 kB / 324.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004485/0.008883, allocations: 285.7 kB / 325.2 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.01006, allocations: 1.014 MB / 326.2 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004623/0.01052, allocations: 202.6 kB / 326.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.01068, allocations: 88.91 kB / 326.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.0107, allocations: 0 / 326.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002488/0.01095, allocations: 164.9 kB / 326.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.062e-06/0.01095, allocations: 0 / 326.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0007113/0.01166, allocations: 334 kB / 327 MB, free: 13.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.0117, allocations: 81.11 kB / 327.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002337/0.01193, allocations: 332.5 kB / 327.4 MB, free: 13.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.01195, allocations: 25.7 kB / 327.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.01214, allocations: 219.8 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.01216, allocations: 39.75 kB / 327.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.609e-05/0.01222, allocations: 53.89 kB / 327.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.379e-05/0.01232, allocations: 334.8 kB / 328.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/0.01252, allocations: 129.8 kB / 328.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.01274, allocations: 244.6 kB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004/0.01314, allocations: 338.7 kB / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.01315, allocations: 0 / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005363/0.01368, allocations: 429.4 kB / 329.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.01372, allocations: 48.59 kB / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.01372, allocations: 4 kB / 329.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000256/0.01398, allocations: 33.16 kB / 329.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.01412, allocations: 63.83 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006622/0.01478, allocations: 1.283 MB / 330.6 MB, free: 9.633 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001829/0.01497, allocations: 59.86 kB / 330.7 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.01499, allocations: 27.92 kB / 330.7 MB, free: 9.547 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.0001011/0.01509, allocations: 141.7 kB / 330.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.535e-05/0.01511, allocations: 27.86 kB / 330.9 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.01514, allocations: 26.67 kB / 330.9 MB, free: 9.348 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.01514, allocations: 0 / 330.9 MB, free: 9.348 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.01514, allocations: 0 / 330.9 MB, free: 9.348 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.01515, allocations: 0 / 330.9 MB, free: 9.348 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002932/0.01544, allocations: 398.3 kB / 331.3 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.01544, allocations: 4 kB / 331.3 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.786e-05/0.01553, allocations: 35.95 kB / 331.3 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.421e-05/0.0156, allocations: 24.84 kB / 331.3 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.01561, allocations: 384 / 331.3 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005856/0.01619, allocations: 1.291 MB / 332.6 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.01619, allocations: 0 / 332.6 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006386/0.01683, allocations: 274.5 kB / 332.9 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.01687, allocations: 27.81 kB / 332.9 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.01689, allocations: 7.984 kB / 332.9 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.01699, allocations: 23.97 kB / 333 MB, free: 7.086 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/0.01705, allocations: 15.97 kB / 333 MB, free: 7.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-06/0.01706, allocations: 7.938 kB / 333 MB, free: 7.062 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000154/0.01721, allocations: 239 kB / 333.2 MB, free: 6.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01721, allocations: 0 / 333.2 MB, free: 6.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000212/0.01742, allocations: 71.89 kB / 333.3 MB, free: 6.758 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.0005908/0.01801, allocations: 0.7974 MB / 334.1 MB, free: 5.922 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005663/0.01858, allocations: 431.9 kB / 334.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.01858, allocations: 0 / 334.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002436/0.01882, allocations: 207.3 kB / 334.7 MB, free: 5.254 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.01905, allocations: 72.52 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.003763/0.02282, 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.734e-05/0.02291, allocations: 150.7 kB / 338.2 MB, free: 1.531 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.677e-05/0.02301, allocations: 30.97 kB / 338.2 MB, free: 1.504 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.02312, allocations: 88.47 kB / 338.3 MB, free: 1.418 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.02312, allocations: 0 / 338.3 MB, free: 1.418 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/0.04526, allocations: 7.02 MB / 345.3 MB, free: 10.56 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.108/7.153, allocations: 3.188 kB / 345.3 MB, free: 10.56 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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] "Error: Could not read variable opAmp.out.v in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! Error: Could not read variable opAmp.out.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.984654302708805]