Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 106.3 kB / 17.98 MB, free: 5.391 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.002142/0.002142, allocations: 193.3 kB / 18.9 MB, free: 4.469 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.545/1.545, allocations: 222.9 MB / 242.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2007/0.2007, allocations: 44.18 MB / 336.9 MB, free: 2.977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 64.58 kB / 408.5 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1069, allocations: 60.83 MB / 469.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00272/0.1097, allocations: 1.658 MB / 471 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007048/0.1104, allocations: 490.8 kB / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.838e-05/0.1105, allocations: 0 / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.1106, allocations: 11.92 kB / 471.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.988e-05/0.1107, allocations: 3.938 kB / 471.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000164/0.1108, allocations: 35.91 kB / 471.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.111, allocations: 83.77 kB / 471.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.1111, allocations: 28.22 kB / 471.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.04e-05/0.1111, allocations: 27.86 kB / 471.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.859e-05/0.1112, allocations: 31.84 kB / 471.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.734e-05/0.1112, allocations: 8 kB / 471.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.235e-05/0.1112, allocations: 4 kB / 471.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.661e-05/0.1113, allocations: 23.86 kB / 471.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.554e-05/0.1113, allocations: 35.8 kB / 471.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.627e-05/0.1114, allocations: 48.14 kB / 471.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1114, allocations: 0 / 471.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1114, allocations: 4 kB / 471.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1114, allocations: 0 / 471.9 MB, free: 12.27 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005013/0.1119, allocations: 391.2 kB / 472.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.112, allocations: 12.03 kB / 472.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.765e-05/0.112, allocations: 8.844 kB / 472.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.1122, allocations: 192.1 kB / 472.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.1122, allocations: 4.375 kB / 472.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.1123, allocations: 16.31 kB / 472.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.1124, allocations: 77.98 kB / 472.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.1124, allocations: 0 / 472.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.1124, allocations: 0 / 472.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.1124, allocations: 4 kB / 472.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.821e-05/0.1125, allocations: 43.91 kB / 472.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005153/0.113, allocations: 348.5 kB / 472.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.725e-05/0.1132, allocations: 50.56 kB / 473 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.349e-05/0.1132, allocations: 20.92 kB / 473 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.1132, allocations: 0 / 473 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.1134, allocations: 67.33 kB / 473.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.1134, allocations: 0 / 473.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001907/0.1136, allocations: 93.52 kB / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.1136, allocations: 55.34 kB / 473.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.1137, allocations: 141.7 kB / 473.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.1138, allocations: 33.69 kB / 473.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.1138, allocations: 104.1 kB / 473.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.323e-05/0.1139, allocations: 15.8 kB / 473.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-05/0.1139, allocations: 25.66 kB / 473.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.7e-05/0.114, allocations: 322.8 kB / 473.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.686e-05/0.1141, allocations: 20 kB / 473.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.653e-05/0.1141, allocations: 42.55 kB / 473.9 MB, free: 10 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.385e-05/0.1142, allocations: 46.52 kB / 473.9 MB, free: 9.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1142, allocations: 4 kB / 473.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001224/0.1143, allocations: 89.52 kB / 474 MB, free: 9.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1143, allocations: 8.062 kB / 474 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1144, allocations: 4 kB / 474 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.1144, allocations: 3.938 kB / 474 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.218e-05/0.1144, allocations: 8 kB / 474.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.1144, allocations: 0 / 474.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.389e-05/0.1145, allocations: 15.89 kB / 474.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.1145, allocations: 4 kB / 474.1 MB, free: 9.805 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_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.547e-05/0.1146, allocations: 125.7 kB / 474.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.5e-05/0.1146, allocations: 7.906 kB / 474.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.221e-05/0.1147, allocations: 16.66 kB / 474.2 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1147, allocations: 4 kB / 474.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1147, allocations: 4 kB / 474.2 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.1147, allocations: 3.984 kB / 474.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003104/0.115, allocations: 346.5 kB / 474.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.115, allocations: 0 / 474.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.943e-05/0.1151, allocations: 7.938 kB / 474.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.1151, allocations: 0 / 474.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-06/0.1151, allocations: 0 / 474.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1151, allocations: 4 kB / 474.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1151, allocations: 0 / 474.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002/0.1153, allocations: 195.4 kB / 474.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.1154, allocations: 81.02 kB / 474.9 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.1154, allocations: 8.031 kB / 474.9 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.53e-05/0.1155, allocations: 3.984 kB / 474.9 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.003e-05/0.1155, allocations: 8.172 kB / 474.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.1156, allocations: 8.062 kB / 474.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.991e-05/0.1156, allocations: 113.4 kB / 475 MB, free: 8.789 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1156, allocations: 0 / 475 MB, free: 8.789 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002252/0.1159, allocations: 15.91 kB / 475 MB, free: 8.773 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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.55e-05/0.116, allocations: 99.7 kB / 475.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001377/0.1161, allocations: 44.53 kB / 475.1 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1161, allocations: 3.938 kB / 475.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.725e-05/0.1162, allocations: 20 kB / 475.2 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.1165, allocations: 28.05 kB / 475.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005412/0.117, allocations: 253.2 kB / 475.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.1173, allocations: 0.7041 MB / 476.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.1173, allocations: 11.44 kB / 476.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1173, allocations: 0 / 476.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of Templates: time 0.002554/0.1199, allocations: 1.155 MB / 477.3 MB, free: 6.402 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches