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.001286/0.001286, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001243, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.9 MB, free: 8.957 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2054/0.2054, allocations: 46.11 MB / 344.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 77.28 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1153, allocations: 62.46 MB / 479.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00284/0.1182, allocations: 1.673 MB / 481.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008514/0.119, allocations: 0.5143 MB / 482.1 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.037e-05/0.1191, allocations: 0 / 482.1 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.1192, allocations: 7.875 kB / 482.1 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.36e-05/0.1193, allocations: 11.92 kB / 482.1 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.1195, allocations: 27.98 kB / 482.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001184/0.1196, allocations: 71.78 kB / 482.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.1197, allocations: 32.2 kB / 482.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.079e-05/0.1198, allocations: 23.86 kB / 482.3 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.638e-05/0.1198, allocations: 35.78 kB / 482.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.1199, allocations: 4 kB / 482.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.665e-05/0.1199, allocations: 4 kB / 482.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.774e-05/0.1199, allocations: 15.98 kB / 482.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.701e-05/0.12, allocations: 35.73 kB / 482.4 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.855e-05/0.1201, allocations: 48.14 kB / 482.4 MB, free: 3.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1201, allocations: 0 / 482.4 MB, free: 3.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1201, allocations: 4 kB / 482.4 MB, free: 3.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.1201, allocations: 0 / 482.4 MB, free: 3.18 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.0005915/0.1207, allocations: 379.3 kB / 482.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.1208, allocations: 12.88 kB / 482.8 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.389e-05/0.1208, allocations: 16.73 kB / 482.8 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.121, allocations: 192.1 kB / 483 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.121, allocations: 4.375 kB / 483 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.674e-05/0.1211, allocations: 8.375 kB / 483 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001591/0.1212, allocations: 85.97 kB / 483.1 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.1213, allocations: 0 / 483.1 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.1213, allocations: 0 / 483.1 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.1213, allocations: 4 kB / 483.1 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.531e-05/0.1214, allocations: 39.92 kB / 483.2 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005745/0.122, allocations: 352.5 kB / 483.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.1221, allocations: 50.52 kB / 483.6 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.327e-05/0.1221, allocations: 16.92 kB / 483.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.393e-05/0.1221, allocations: 7.984 kB / 483.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001709/0.1223, allocations: 63.39 kB / 483.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.1223, allocations: 0 / 483.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002287/0.1226, allocations: 101.5 kB / 483.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.1226, allocations: 51.41 kB / 483.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.1227, allocations: 140 kB / 483.9 MB, free: 1.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.1228, allocations: 37.64 kB / 484 MB, free: 1.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.072e-05/0.1228, allocations: 92.05 kB / 484.1 MB, free: 1.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.1228, allocations: 23.88 kB / 484.1 MB, free: 1.336 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.1229, allocations: 21.72 kB / 484.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.123, allocations: 322.8 kB / 484.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.824e-05/0.1231, allocations: 23.92 kB / 484.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.82e-05/0.1231, allocations: 34.58 kB / 484.5 MB, free: 0.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.191e-05/0.1232, allocations: 50.5 kB / 484.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1232, allocations: 4 kB / 484.5 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001367/0.1233, allocations: 93.81 kB / 484.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.1234, allocations: 8.062 kB / 484.6 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1234, allocations: 0 / 484.6 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1234, allocations: 7.938 kB / 484.6 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.545e-05/0.1235, allocations: 7.938 kB / 484.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.1235, allocations: 4 kB / 484.6 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.56e-05/0.1236, allocations: 11.89 kB / 484.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.1236, allocations: 8 kB / 484.7 MB, free: 0.7109 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 9.104e-05/0.1237, allocations: 113.8 kB / 484.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.1237, allocations: 7.906 kB / 484.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.1237, allocations: 20.64 kB / 484.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1237, allocations: 4 kB / 484.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1238, allocations: 0 / 484.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1238, allocations: 0 / 484.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003338/0.1241, allocations: 350.4 kB / 485.2 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1241, allocations: 4 kB / 485.2 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.367e-05/0.1242, allocations: 0 / 485.2 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1242, allocations: 4 kB / 485.2 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.1242, allocations: 0 / 485.2 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1242, allocations: 4 kB / 485.2 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1242, allocations: 0 / 485.2 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002326/0.1244, allocations: 195.3 kB / 485.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.325e-05/0.1245, allocations: 81.02 kB / 485.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.04e-05/0.1245, allocations: 4.031 kB / 485.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.256e-05/0.1246, allocations: 11.98 kB / 485.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/0.1247, allocations: 7.984 kB / 485.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.1247, allocations: 4.062 kB / 485.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.556e-05/0.1248, allocations: 109.8 kB / 485.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1248, allocations: 0 / 485.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002319/0.125, allocations: 23.84 kB / 485.6 MB, free: 15.69 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.0001035/0.1251, allocations: 95.23 kB / 485.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001358/0.1253, allocations: 47.92 kB / 485.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1253, allocations: 3.938 kB / 485.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.243e-05/0.1253, allocations: 19.98 kB / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.1257, allocations: 27.98 kB / 485.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005347/0.1262, allocations: 246 kB / 486 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/0.1265, allocations: 0.6971 MB / 486.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.304e-05/0.1265, allocations: 19.42 kB / 486.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1266, allocations: 0 / 486.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of Templates: time 0.002915/0.1295, allocations: 1.132 MB / 487.9 MB, free: 13.34 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 -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