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: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.001289, allocations: 115.9 kB / 17.09 MB, free: 5.984 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.001258/0.001258, allocations: 189.3 kB / 18.01 MB, free: 5.074 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.304/1.304, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.2013/0.2013, allocations: 43.52 MB / 314.8 MB, free: 460 kB / 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.001418/0.001418, allocations: 63.89 kB / 442.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1053, allocations: 57.78 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00287/0.1083, allocations: 1.637 MB / 0.4901 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009795/0.1093, allocations: 0.597 MB / 0.4907 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.1094, allocations: 7.938 kB / 0.4907 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.1095, allocations: 7.875 kB / 0.4907 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.025e-05/0.1096, allocations: 15.86 kB / 0.4907 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003444/0.11, allocations: 83.83 kB / 0.4908 GB, free: 9.461 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001701/0.1101, allocations: 115.7 kB / 0.4909 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.1103, allocations: 39.95 kB / 0.491 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.109e-05/0.1104, allocations: 51.78 kB / 0.491 GB, free: 9.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.799e-05/0.1104, allocations: 35.84 kB / 0.491 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.437e-05/0.1105, allocations: 8 kB / 0.491 GB, free: 9.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.786e-05/0.1105, allocations: 8 kB / 0.4911 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.568e-05/0.1105, allocations: 19.92 kB / 0.4911 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.389e-05/0.1106, allocations: 47.7 kB / 0.4911 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.1107, allocations: 87.69 kB / 0.4912 GB, free: 9.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1107, allocations: 0 / 0.4912 GB, free: 9.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1107, allocations: 0 / 0.4912 GB, free: 9.055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.932e-06/0.1107, allocations: 4 kB / 0.4912 GB, free: 9.051 MB / 382.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.0006133/0.1114, allocations: 419 kB / 0.4916 GB, free: 8.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.1114, allocations: 11.89 kB / 0.4916 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.883e-05/0.1114, allocations: 8.844 kB / 0.4916 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00025/0.1117, allocations: 200.1 kB / 0.4918 GB, free: 8.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.1117, allocations: 12.38 kB / 0.4918 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.848e-05/0.1118, allocations: 8.375 kB / 0.4918 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00027/0.112, allocations: 105.9 kB / 0.4919 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1121, allocations: 0 / 0.4919 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.1121, allocations: 0 / 0.4919 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1121, allocations: 0 / 0.4919 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001674/0.1123, allocations: 59.91 kB / 0.492 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006532/0.1129, allocations: 384.4 kB / 0.4924 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003293/0.1133, allocations: 106.5 kB / 0.4925 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.1134, allocations: 32.92 kB / 0.4925 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-06/0.1134, allocations: 7.875 kB / 0.4925 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002379/0.1137, allocations: 107.3 kB / 0.4926 GB, free: 7.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.1137, allocations: 0 / 0.4926 GB, free: 7.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004373/0.1141, allocations: 141.5 kB / 0.4927 GB, free: 7.309 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.1142, allocations: 59.33 kB / 0.4928 GB, free: 7.238 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.1143, allocations: 145.7 kB / 0.4929 GB, free: 7.086 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.1143, allocations: 29.7 kB / 0.493 GB, free: 7.051 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.707e-05/0.1144, allocations: 104.1 kB / 0.4931 GB, free: 6.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.1144, allocations: 19.8 kB / 0.4931 GB, free: 6.926 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.615e-05/0.1145, allocations: 33.7 kB / 0.4931 GB, free: 6.887 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.685e-05/0.1146, allocations: 326.8 kB / 0.4934 GB, free: 6.559 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.1147, allocations: 27.98 kB / 0.4935 GB, free: 6.531 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.1148, allocations: 49.69 kB / 0.4935 GB, free: 6.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.115, allocations: 81.61 kB / 0.4936 GB, free: 6.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.115, allocations: 0 / 0.4936 GB, free: 6.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002805/0.1153, allocations: 121.5 kB / 0.4937 GB, free: 6.266 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.1154, allocations: 7.938 kB / 0.4937 GB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1154, allocations: 4 kB / 0.4937 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1154, allocations: 0 / 0.4937 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.1155, allocations: 19.92 kB / 0.4937 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.1155, allocations: 288 / 0.4937 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.267e-05/0.1156, allocations: 15.98 kB / 0.4937 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-06/0.1156, allocations: 8 kB / 0.4937 GB, free: 6.211 MB / 382.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.554e-05/0.1157, allocations: 121.7 kB / 0.4939 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.1157, allocations: 11.84 kB / 0.4939 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.121e-05/0.1158, allocations: 20.7 kB / 0.4939 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1158, allocations: 0 / 0.4939 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1158, allocations: 0 / 0.4939 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1158, allocations: 4 kB / 0.4939 GB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004894/0.1163, allocations: 402.3 kB / 0.4943 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1163, allocations: 4 kB / 0.4943 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.104e-05/0.1164, allocations: 8 kB / 0.4943 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1164, allocations: 0 / 0.4943 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.1164, allocations: 0 / 0.4943 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1164, allocations: 7.922 kB / 0.4943 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1164, allocations: 0 / 0.4943 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004323/0.1169, allocations: 251.3 kB / 0.4945 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.511e-05/0.1169, allocations: 92.97 kB / 0.4946 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.117, allocations: 4.062 kB / 0.4946 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.1171, allocations: 23.97 kB / 0.4947 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.408e-05/0.1172, allocations: 7.984 kB / 0.4947 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.1172, allocations: 4 kB / 0.4947 GB, free: 5.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.081e-05/0.1173, allocations: 116 kB / 0.4948 GB, free: 5.051 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1173, allocations: 0 / 0.4948 GB, free: 5.051 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002385/0.1175, allocations: 16 kB / 0.4948 GB, free: 5.035 MB / 382.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 9.529e-05/0.1176, allocations: 95.25 kB / 0.4949 GB, free: 4.934 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002863/0.1179, allocations: 83.83 kB / 0.495 GB, free: 4.852 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1179, allocations: 0 / 0.495 GB, free: 4.852 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.1181, allocations: 44.03 kB / 0.495 GB, free: 4.809 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.1184, allocations: 30.02 kB / 0.495 GB, free: 4.785 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004968/0.1189, allocations: 244.7 kB / 0.4953 GB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.1191, allocations: 0.7001 MB / 0.496 GB, free: 3.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.036e-05/0.1192, allocations: 19.44 kB / 0.496 GB, free: 3.77 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1192, allocations: 4 kB / 0.496 GB, free: 3.766 MB / 382.1 MB Notification: Performance of Templates: time 0.002773/0.1219, allocations: 1.356 MB / 0.4973 GB, free: 2.406 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/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