Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001401/0.001401, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001746/0.001746, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2058/0.2058, allocations: 46.11 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 78.97 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1124, allocations: 62.43 MB / 481.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002986/0.1154, allocations: 1.629 MB / 483.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008181/0.1163, allocations: 0.5103 MB / 483.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.079e-05/0.1164, allocations: 0 / 483.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.1165, allocations: 11.86 kB / 483.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.978e-05/0.1165, allocations: 7.875 kB / 483.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001701/0.1167, allocations: 35.91 kB / 483.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.1169, allocations: 91.69 kB / 483.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.117, allocations: 32.2 kB / 483.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.696e-05/0.1171, allocations: 27.86 kB / 483.8 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.771e-05/0.1171, allocations: 31.84 kB / 483.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.062e-05/0.1172, allocations: 8 kB / 483.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.495e-05/0.1172, allocations: 4 kB / 483.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.852e-05/0.1172, allocations: 23.86 kB / 483.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.845e-05/0.1173, allocations: 35.8 kB / 483.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.1174, allocations: 75.66 kB / 484 MB, free: 2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1174, allocations: 0 / 484 MB, free: 2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1174, allocations: 4 kB / 484 MB, free: 1.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.1174, allocations: 0 / 484 MB, free: 1.996 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.0005582/0.118, allocations: 383.3 kB / 484.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.118, allocations: 8.031 kB / 484.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/0.1181, allocations: 16.75 kB / 484.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.1184, allocations: 200.1 kB / 484.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.1184, allocations: 4.375 kB / 484.6 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.53e-05/0.1184, allocations: 8.375 kB / 484.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.1186, allocations: 77.98 kB / 484.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.1186, allocations: 0 / 484.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.1186, allocations: 3.984 kB / 484.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.1186, allocations: 4 kB / 484.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.402e-05/0.1187, allocations: 31.98 kB / 484.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000515/0.1192, allocations: 356.4 kB / 485 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.422e-05/0.1193, allocations: 46.52 kB / 485.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.139e-05/0.1194, allocations: 16.92 kB / 485.1 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.1194, allocations: 4 kB / 485.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001094/0.1195, allocations: 71.38 kB / 485.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.1195, allocations: 0 / 485.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001972/0.1197, allocations: 93.47 kB / 485.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.1197, allocations: 51.41 kB / 485.3 MB, free: 476 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.1199, allocations: 137.8 kB / 485.4 MB, free: 328 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.1199, allocations: 29.7 kB / 485.5 MB, free: 292 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.737e-05/0.1199, allocations: 96.05 kB / 485.6 MB, free: 192 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.31e-05/0.12, allocations: 27.86 kB / 485.6 MB, free: 164 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.095e-05/0.12, allocations: 25.72 kB / 485.6 MB, free: 132 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1201, allocations: 322.8 kB / 485.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.718e-05/0.1202, allocations: 12 kB / 485.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.039e-05/0.1202, allocations: 46.5 kB / 486 MB, free: 15.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.805e-05/0.1203, allocations: 54.8 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1203, allocations: 4 kB / 486 MB, free: 15.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000127/0.1205, allocations: 89.53 kB / 486.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.1205, allocations: 4 kB / 486.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1205, allocations: 0 / 486.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1205, allocations: 7.938 kB / 486.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.325e-05/0.1206, allocations: 8 kB / 486.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.1206, allocations: 7.938 kB / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.317e-05/0.1207, allocations: 11.89 kB / 486.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.1207, allocations: 4 kB / 486.2 MB, free: 15.54 MB / 366.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.0001114/0.1208, allocations: 127 kB / 486.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.1208, allocations: 11.84 kB / 486.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.173e-05/0.1209, allocations: 12.66 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.1209, allocations: 0 / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1209, allocations: 7.984 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1209, allocations: 0 / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003348/0.1212, allocations: 354.4 kB / 486.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1212, allocations: 0 / 486.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.785e-05/0.1213, allocations: 4 kB / 486.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1213, allocations: 4 kB / 486.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.1213, allocations: 4 kB / 486.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1213, allocations: 0 / 486.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1213, allocations: 0 / 486.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001904/0.1215, allocations: 187.4 kB / 486.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.783e-05/0.1216, allocations: 85.05 kB / 487 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.1216, allocations: 3.938 kB / 487 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.012e-05/0.1217, allocations: 16.05 kB / 487 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.1217, allocations: 7.984 kB / 487 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.1218, allocations: 4 kB / 487 MB, free: 14.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.655e-05/0.1218, allocations: 103.3 kB / 487.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1218, allocations: 0 / 487.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002347/0.1221, allocations: 19.91 kB / 487.1 MB, free: 14.51 MB / 366.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.0001065/0.1222, allocations: 95.23 kB / 487.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001299/0.1223, allocations: 51.91 kB / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1223, allocations: 4.125 kB / 487.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.468e-05/0.1224, allocations: 16 kB / 487.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.1227, allocations: 26.55 kB / 487.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004375/0.1231, allocations: 198.6 kB / 487.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.1234, allocations: 0.6962 MB / 488.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.576e-05/0.1234, allocations: 16.42 kB / 488.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.898e-05/0.1235, allocations: 11.44 kB / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1235, allocations: 0 / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of Templates: time 0.003/0.1265, allocations: 0.9288 MB / 489.1 MB, free: 12.42 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches