Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 98.94 kB / 18.01 MB, free: 5.738 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.00138/0.00138, allocations: 178.5 kB / 18.91 MB, free: 4.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.3 MB / 242.9 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1957/0.1957, allocations: 44.25 MB / 338.3 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003174, allocations: 10.78 kB / 411 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1048, allocations: 61.92 MB / 472.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001839/0.1067, allocations: 1.33 MB / 474.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000965/0.1077, allocations: 0.534 MB / 474.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.1078, allocations: 7.938 kB / 474.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.108, allocations: 7.922 kB / 474.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.707e-05/0.108, allocations: 3.938 kB / 474.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003708/0.1084, allocations: 94.69 kB / 474.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001703/0.1086, allocations: 99.75 kB / 475 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1087, allocations: 31.98 kB / 475 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.872e-05/0.1088, allocations: 39.78 kB / 475 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.404e-05/0.1089, allocations: 35.78 kB / 475.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.271e-05/0.1089, allocations: 4 kB / 475.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.356e-05/0.109, allocations: 4 kB / 475.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.685e-05/0.109, allocations: 15.91 kB / 475.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.038e-05/0.1091, allocations: 61.5 kB / 475.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.905e-05/0.1092, allocations: 56.09 kB / 475.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1092, allocations: 4 kB / 475.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1092, allocations: 0 / 475.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.75e-06/0.1092, allocations: 0 / 475.2 MB, free: 11.01 MB / 350.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.0006252/0.1098, allocations: 399.2 kB / 475.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1099, allocations: 12.03 kB / 475.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.1099, allocations: 16.75 kB / 475.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002089/0.1102, allocations: 200.1 kB / 475.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.1102, allocations: 4.375 kB / 475.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.798e-05/0.1102, allocations: 12.38 kB / 475.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.1105, allocations: 113 kB / 476 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.1105, allocations: 0 / 476 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.1106, allocations: 4 kB / 476 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1106, allocations: 4 kB / 476 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.1108, allocations: 51.91 kB / 476 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007184/0.1115, allocations: 416.3 kB / 476.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.1119, allocations: 114.5 kB / 476.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.112, allocations: 36.88 kB / 476.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.512e-05/0.112, allocations: 3.984 kB / 476.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002947/0.1123, allocations: 111.3 kB / 476.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.1123, allocations: 4 kB / 476.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004787/0.1128, allocations: 157.4 kB / 476.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.1129, allocations: 55.34 kB / 476.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.113, allocations: 153.7 kB / 477.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.1131, allocations: 33.7 kB / 477.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.815e-05/0.1131, allocations: 100.1 kB / 477.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.622e-05/0.1132, allocations: 11.81 kB / 477.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/0.1132, allocations: 21.7 kB / 477.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1133, allocations: 322.8 kB / 477.5 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.1135, allocations: 39.98 kB / 477.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.1136, allocations: 57.62 kB / 477.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/0.1138, allocations: 85.67 kB / 477.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1138, allocations: 0 / 477.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003131/0.1142, allocations: 133.4 kB / 477.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.1142, allocations: 10.44 kB / 477.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1142, allocations: 0 / 477.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.1142, allocations: 4 kB / 477.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1143, allocations: 19.92 kB / 477.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.1144, allocations: 0 / 477.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.1145, allocations: 28.06 kB / 477.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-06/0.1145, allocations: 0 / 477.9 MB, free: 8.102 MB / 350.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 0.000104/0.1146, allocations: 122.1 kB / 478 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.1146, allocations: 15.84 kB / 478 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.745e-05/0.1147, allocations: 8.719 kB / 478 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1147, allocations: 7.938 kB / 478.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1147, allocations: 0 / 478.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1147, allocations: 8 kB / 478.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005477/0.1152, allocations: 402.3 kB / 478.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1153, allocations: 8 kB / 478.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.039e-05/0.1154, allocations: 8 kB / 478.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.1154, allocations: 7.922 kB / 478.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.1154, allocations: 8 kB / 478.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1154, allocations: 0 / 478.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1154, allocations: 0 / 478.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00048/0.1159, allocations: 259.3 kB / 478.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.1159, allocations: 85.11 kB / 478.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.116, allocations: 4 kB / 478.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/0.1161, allocations: 27.97 kB / 478.9 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.799e-05/0.1162, allocations: 11.98 kB / 478.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.1162, allocations: 4 kB / 478.9 MB, free: 7.035 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.507e-05/0.1163, allocations: 108.6 kB / 479 MB, free: 6.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1163, allocations: 0 / 479 MB, free: 6.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002411/0.1165, allocations: 24 kB / 479 MB, free: 6.906 MB / 350.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.0001036/0.1167, allocations: 91.78 kB / 479.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003251/0.117, allocations: 103.8 kB / 479.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.117, allocations: 0 / 479.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.1171, allocations: 43.97 kB / 479.2 MB, free: 6.664 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.1175, allocations: 23.92 kB / 479.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005758/0.1181, allocations: 282.9 kB / 479.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002498/0.1183, allocations: 0.7043 MB / 480.2 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.436e-05/0.1184, allocations: 15.44 kB / 480.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1184, allocations: 0 / 480.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of Templates: time 0.002892/0.1213, allocations: 1.326 MB / 481.6 MB, free: 4.258 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches