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.001413/0.001413, allocations: 109.8 kB / 18.3 MB, free: 4.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001533/0.001533, allocations: 215.9 kB / 19.25 MB, free: 3.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2451/0.2451, allocations: 46.1 MB / 344.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001689, allocations: 74.12 kB / 418.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1299, allocations: 62.44 MB / 480.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003417/0.1334, allocations: 1.622 MB / 482.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.1344, allocations: 0.5026 MB / 482.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.1346, allocations: 7.938 kB / 482.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.1347, allocations: 11.88 kB / 482.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.918e-05/0.1348, allocations: 7.922 kB / 482.8 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002379/0.1351, allocations: 47.83 kB / 482.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.1352, allocations: 75.78 kB / 483 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.1354, allocations: 28.2 kB / 483 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.584e-05/0.1355, allocations: 31.86 kB / 483 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.486e-05/0.1356, allocations: 31.84 kB / 483.1 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.1356, allocations: 4 kB / 483.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.836e-05/0.1356, allocations: 8 kB / 483.1 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.295e-05/0.1357, allocations: 23.91 kB / 483.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.33e-05/0.1357, allocations: 31.81 kB / 483.1 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.1359, allocations: 75.94 kB / 483.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1359, allocations: 0 / 483.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1359, allocations: 0 / 483.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1359, allocations: 0 / 483.2 MB, free: 2.789 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.0006418/0.1365, allocations: 395.2 kB / 483.6 MB, free: 2.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1366, allocations: 8.031 kB / 483.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.415e-05/0.1367, allocations: 12.75 kB / 483.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/0.1369, allocations: 192.2 kB / 483.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.1369, allocations: 4.375 kB / 483.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.629e-05/0.137, allocations: 12.38 kB / 483.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.1372, allocations: 69.98 kB / 483.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1372, allocations: 3.938 kB / 483.9 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.1372, allocations: 15.94 kB / 483.9 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1372, allocations: 0 / 483.9 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.871e-05/0.1373, allocations: 35.97 kB / 483.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006643/0.138, allocations: 356.4 kB / 484.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001171/0.1381, allocations: 46.56 kB / 484.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.771e-05/0.1382, allocations: 16.89 kB / 484.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.1382, allocations: 0 / 484.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.1384, allocations: 75.36 kB / 484.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.1384, allocations: 3.938 kB / 484.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002463/0.1387, allocations: 81.53 kB / 484.5 MB, free: 1.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.962e-05/0.1388, allocations: 51.41 kB / 484.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.1389, allocations: 144.3 kB / 484.7 MB, free: 1.105 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.1389, allocations: 29.7 kB / 484.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/0.139, allocations: 104 kB / 484.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.139, allocations: 15.89 kB / 484.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.932e-05/0.1391, allocations: 29.7 kB / 484.9 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1392, allocations: 322.8 kB / 485.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.422e-05/0.1393, allocations: 12 kB / 485.2 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.508e-05/0.1393, allocations: 46.5 kB / 485.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.18e-05/0.1394, allocations: 50.58 kB / 485.3 MB, free: 476 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1394, allocations: 0 / 485.3 MB, free: 476 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000162/0.1396, allocations: 81.53 kB / 485.4 MB, free: 388 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.1396, allocations: 11.98 kB / 485.4 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.944e-06/0.1397, allocations: 0 / 485.4 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.1397, allocations: 8 kB / 485.4 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.367e-05/0.1398, allocations: 15.94 kB / 485.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.1398, allocations: 4 kB / 485.4 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.99e-05/0.1399, allocations: 11.89 kB / 485.4 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.1399, allocations: 4 kB / 485.4 MB, free: 332 kB / 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.768e-05/0.14, allocations: 120.8 kB / 485.5 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.847e-05/0.14, allocations: 7.906 kB / 485.5 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.118e-05/0.14, allocations: 20.66 kB / 485.6 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1401, allocations: 0 / 485.6 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.1401, allocations: 4 kB / 485.6 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.1401, allocations: 0 / 485.6 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003642/0.1404, allocations: 350.4 kB / 485.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1405, allocations: 192 / 485.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.607e-05/0.1405, allocations: 7.984 kB / 485.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1405, allocations: 3.938 kB / 485.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1405, allocations: 4 kB / 485.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.1406, allocations: 0 / 485.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1406, allocations: 0 / 485.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002359/0.1408, allocations: 207.8 kB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.01e-05/0.1409, allocations: 85.05 kB / 486.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.1409, allocations: 3.938 kB / 486.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.885e-05/0.141, allocations: 7.984 kB / 486.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.1411, allocations: 8 kB / 486.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.1411, allocations: 3.984 kB / 486.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.459e-05/0.1412, allocations: 105.5 kB / 486.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1412, allocations: 4.062 kB / 486.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002411/0.1414, allocations: 15.91 kB / 486.4 MB, free: 15.29 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.00011/0.1415, allocations: 95.25 kB / 486.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000152/0.1417, allocations: 47.92 kB / 486.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1417, allocations: 0 / 486.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.732e-05/0.1418, allocations: 27.92 kB / 486.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003195/0.1421, allocations: 23.86 kB / 486.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005357/0.1426, allocations: 224.4 kB / 486.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.1429, allocations: 0.6924 MB / 487.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.76e-05/0.143, allocations: 15.44 kB / 487.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.143, allocations: 0 / 487.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Templates: time 0.003162/0.1461, allocations: 1.152 MB / 488.6 MB, free: 12.95 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