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.0008/0.0008001, allocations: 95.7 kB / 17.35 MB, free: 6.367 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.0008495/0.0008496, allocations: 176.8 kB / 18.25 MB, free: 5.527 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.336/1.336, allocations: 223.3 MB / 242.3 MB, free: 244 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.2038/0.2038, allocations: 44.25 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002966/0.0002967, allocations: 11.98 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1119, allocations: 61.92 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001928/0.1138, allocations: 1.318 MB / 473.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007595/0.1146, allocations: 474.9 kB / 474 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.02e-05/0.1147, allocations: 0 / 474 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.1148, allocations: 7.922 kB / 474 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.831e-05/0.1149, allocations: 11.92 kB / 474 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001723/0.1151, allocations: 31.92 kB / 474.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001283/0.1152, allocations: 75.77 kB / 474.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.1153, allocations: 36.19 kB / 474.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.045e-05/0.1154, allocations: 19.88 kB / 474.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.674e-05/0.1155, allocations: 31.78 kB / 474.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.1155, allocations: 0 / 474.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.418e-05/0.1155, allocations: 4 kB / 474.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.191e-05/0.1155, allocations: 7.938 kB / 474.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.497e-05/0.1156, allocations: 57.5 kB / 474.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.1157, allocations: 63.98 kB / 474.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1157, allocations: 4 kB / 474.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.1157, allocations: 0 / 474.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1157, allocations: 0 / 474.4 MB, free: 11.21 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.0005593/0.1163, allocations: 375.3 kB / 474.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.1164, allocations: 12.03 kB / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.319e-05/0.1164, allocations: 8.844 kB / 474.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.1166, allocations: 200.1 kB / 475 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.1167, allocations: 8.375 kB / 475 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.862e-05/0.1167, allocations: 8.375 kB / 475 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001621/0.1169, allocations: 77.92 kB / 475 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1169, allocations: 0 / 475 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.1169, allocations: 7.984 kB / 475.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.1169, allocations: 4 kB / 475.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.425e-05/0.117, allocations: 31.92 kB / 475.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006262/0.1176, allocations: 360.5 kB / 475.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.1178, allocations: 46.52 kB / 475.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.896e-05/0.1178, allocations: 20.92 kB / 475.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.182e-05/0.1178, allocations: 0 / 475.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001618/0.118, allocations: 67.39 kB / 475.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.118, allocations: 4 kB / 475.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002445/0.1183, allocations: 89.52 kB / 475.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.1183, allocations: 55.34 kB / 475.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.1185, allocations: 145.6 kB / 475.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.1185, allocations: 33.7 kB / 475.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.693e-05/0.1186, allocations: 96.22 kB / 476 MB, free: 9.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.1186, allocations: 19.7 kB / 476 MB, free: 9.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-05/0.1186, allocations: 17.72 kB / 476 MB, free: 9.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1188, allocations: 322.8 kB / 476.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.472e-05/0.1188, allocations: 16 kB / 476.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.729e-05/0.1189, allocations: 38.56 kB / 476.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.773e-05/0.119, allocations: 54.52 kB / 476.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.119, allocations: 0 / 476.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001691/0.1192, allocations: 93.5 kB / 476.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.1192, allocations: 5.719 kB / 476.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.1192, allocations: 4 kB / 476.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1192, allocations: 7.875 kB / 476.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.723e-05/0.1193, allocations: 8 kB / 476.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.1193, allocations: 0 / 476.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.511e-05/0.1194, allocations: 15.98 kB / 476.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.1194, allocations: 8.047 kB / 476.6 MB, free: 8.754 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 0.0001019/0.1195, allocations: 128.1 kB / 476.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.9e-05/0.1196, allocations: 11.91 kB / 476.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.481e-05/0.1196, allocations: 12.66 kB / 476.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.1196, allocations: 0 / 476.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1196, allocations: 0 / 476.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1196, allocations: 8.172 kB / 476.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000379/0.12, allocations: 346.4 kB / 477.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.12, allocations: 7.938 kB / 477.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.766e-05/0.1201, allocations: 7.938 kB / 477.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.1201, allocations: 0 / 477.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.1201, allocations: 4 kB / 477.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1201, allocations: 0 / 477.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1201, allocations: 0 / 477.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002312/0.1204, allocations: 187.8 kB / 477.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.395e-05/0.1204, allocations: 85.05 kB / 477.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.08e-05/0.1205, allocations: 8.062 kB / 477.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.423e-05/0.1206, allocations: 11.98 kB / 477.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.898e-05/0.1206, allocations: 7.984 kB / 477.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.164e-06/0.1207, allocations: 0 / 477.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.012e-05/0.1207, allocations: 105.3 kB / 477.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.235e-06/0.1208, allocations: 0 / 477.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.121, allocations: 19.94 kB / 477.5 MB, free: 7.727 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 0.0001609/0.1212, allocations: 99.7 kB / 477.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001631/0.1213, allocations: 52.05 kB / 477.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.1214, allocations: 0 / 477.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.923e-05/0.1214, allocations: 23.94 kB / 477.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.1218, allocations: 19.92 kB / 477.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006655/0.1225, allocations: 249.1 kB / 478 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.1229, allocations: 0.7004 MB / 478.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.521e-05/0.1229, allocations: 8.438 kB / 478.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.049e-05/0.123, allocations: 11.44 kB / 478.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.123, allocations: 0 / 478.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of Templates: time 0.003595/0.1266, allocations: 0.8391 MB / 479.5 MB, free: 5.676 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches