Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 105 kB / 16.27 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 188.2 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.573/1.573, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2121/0.2121, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 65.3 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09854/0.1002, allocations: 57.78 MB / 440.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003049/0.1033, allocations: 1.629 MB / 442.2 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008263/0.1041, allocations: 0.5853 MB / 442.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.25e-05/0.1042, allocations: 0 / 442.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.1044, allocations: 23.8 kB / 442.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.951e-05/0.1044, allocations: 11.88 kB / 442.9 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003025/0.1047, allocations: 87.81 kB / 442.9 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.1049, allocations: 123.6 kB / 443.1 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.105, allocations: 31.97 kB / 443.1 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.112e-05/0.1051, allocations: 43.84 kB / 443.1 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.978e-05/0.1051, allocations: 35.84 kB / 443.2 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.248e-05/0.1051, allocations: 12 kB / 443.2 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.585e-05/0.1052, allocations: 11.94 kB / 443.2 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.566e-05/0.1052, allocations: 27.84 kB / 443.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.318e-05/0.1053, allocations: 43.73 kB / 443.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.1054, allocations: 79.75 kB / 443.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.1054, allocations: 4 kB / 443.3 MB, free: 4.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1054, allocations: 0 / 443.3 MB, free: 4.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.1054, allocations: 0 / 443.3 MB, free: 4.047 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005788/0.106, allocations: 415.1 kB / 443.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.106, allocations: 15.83 kB / 443.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.1061, allocations: 38.75 kB / 443.8 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.1061, allocations: 8.844 kB / 443.8 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001874/0.1063, allocations: 196.1 kB / 444 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.1063, allocations: 12.36 kB / 444 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.463e-05/0.1064, allocations: 8.281 kB / 444 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.1066, allocations: 105.8 kB / 444.1 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.1066, allocations: 0 / 444.1 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.1067, allocations: 4 kB / 444.1 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.1067, allocations: 4 kB / 444.1 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001437/0.1068, allocations: 47.97 kB / 444.2 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005455/0.1074, allocations: 388.5 kB / 444.6 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.1077, allocations: 102.5 kB / 444.7 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.1078, allocations: 32.92 kB / 444.7 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.1078, allocations: 11.92 kB / 444.7 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002188/0.108, allocations: 95.36 kB / 444.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.108, allocations: 0 / 444.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000422/0.1085, allocations: 149.4 kB / 444.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.605e-05/0.1085, allocations: 59.41 kB / 445 MB, free: 2.195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.533e-05/0.1086, allocations: 141.8 kB / 445.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.1086, allocations: 29.64 kB / 445.2 MB, free: 2.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.617e-05/0.1087, allocations: 100.1 kB / 445.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.1087, allocations: 23.8 kB / 445.3 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.883e-05/0.1087, allocations: 25.7 kB / 445.3 MB, free: 1.855 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.763e-05/0.1088, allocations: 326.8 kB / 445.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.1089, allocations: 31.98 kB / 445.7 MB, free: 1.496 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.109, allocations: 49.69 kB / 445.7 MB, free: 1.441 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.1092, allocations: 85.73 kB / 445.8 MB, free: 1.352 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1092, allocations: 4 kB / 445.8 MB, free: 1.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002463/0.1095, allocations: 117.5 kB / 445.9 MB, free: 1.227 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.1095, allocations: 11.94 kB / 445.9 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1095, allocations: 0 / 445.9 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1095, allocations: 0 / 445.9 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.563e-05/0.1096, allocations: 15.98 kB / 445.9 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.1096, allocations: 7.938 kB / 446 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.914e-05/0.1097, allocations: 11.98 kB / 446 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.1098, allocations: 4 kB / 446 MB, free: 1.176 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.468e-05/0.1098, allocations: 134.3 kB / 446.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.971e-05/0.1099, allocations: 19.73 kB / 446.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/0.1099, allocations: 12.72 kB / 446.1 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1099, allocations: 0 / 446.1 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1099, allocations: 0 / 446.1 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1099, allocations: 3.984 kB / 446.1 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004069/0.1103, allocations: 394.4 kB / 446.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1104, allocations: 0 / 446.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.542e-05/0.1105, allocations: 15.94 kB / 446.5 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1105, allocations: 4 kB / 446.5 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.1105, allocations: 3.984 kB / 446.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1105, allocations: 0 / 446.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1105, allocations: 0 / 446.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003955/0.1109, allocations: 247.3 kB / 446.8 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/0.1109, allocations: 84.95 kB / 446.9 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.224e-05/0.111, allocations: 4.031 kB / 446.9 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.1111, allocations: 20.03 kB / 446.9 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.342e-05/0.1112, allocations: 15.98 kB / 446.9 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.1112, allocations: 0 / 446.9 MB, free: 140 kB / 318.1 MB Notification: Performance of sorting global known variables: time 5.419e-05/0.1112, allocations: 116.7 kB / 447 MB, free: 24 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1112, allocations: 3.938 kB / 447 MB, free: 20 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002285/0.1115, allocations: 19.91 kB / 447 MB, free: 0 / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007607/0.1122, allocations: 0.7908 MB / 447.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.1126, allocations: 83.95 kB / 447.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1126, allocations: 0 / 447.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.1127, allocations: 43.97 kB / 448 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.113, allocations: 12 kB / 448 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.115, allocations: 1.644 MB / 449.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.1153, allocations: 0.7002 MB / 450.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.273e-05/0.1153, allocations: 16.42 kB / 450.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.467e-05/0.1154, allocations: 31.42 kB / 450.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of SimCode: time 1.934e-06/0.1154, allocations: 0 / 450.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01956/0.135, allocations: 2.619 MB / 453 MB, free: 9.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.702/7.837, allocations: 0 / 453 MB, free: 9.934 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches