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.001533/0.001533, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001325, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 247.5 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2332/0.2332, allocations: 46.12 MB / 344.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002241/0.002241, allocations: 81.8 kB / 418.3 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.122, allocations: 62.45 MB / 480.8 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003083/0.1251, allocations: 1.624 MB / 482.4 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009188/0.1261, allocations: 0.4987 MB / 482.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.082e-05/0.1261, allocations: 0 / 482.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.1263, allocations: 19.8 kB / 482.9 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.351e-05/0.1264, allocations: 15.92 kB / 482.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.1265, allocations: 31.91 kB / 482.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001459/0.1267, allocations: 83.7 kB / 483 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.1268, allocations: 28.2 kB / 483.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.807e-05/0.1269, allocations: 31.81 kB / 483.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.741e-05/0.127, allocations: 31.84 kB / 483.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.127, allocations: 12 kB / 483.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.69e-05/0.127, allocations: 8 kB / 483.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.76e-05/0.1271, allocations: 11.92 kB / 483.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.209e-05/0.1271, allocations: 35.8 kB / 483.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.1273, allocations: 79.94 kB / 483.3 MB, free: 2.691 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1273, allocations: 0 / 483.3 MB, free: 2.691 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1273, allocations: 0 / 483.3 MB, free: 2.691 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1273, allocations: 0 / 483.3 MB, free: 2.691 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.000626/0.1279, allocations: 383.2 kB / 483.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.128, allocations: 20.02 kB / 483.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.137e-05/0.128, allocations: 12.75 kB / 483.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/0.1283, allocations: 192.2 kB / 483.9 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.1283, allocations: 4.375 kB / 483.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.693e-05/0.1283, allocations: 8.375 kB / 483.9 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001559/0.1285, allocations: 80.64 kB / 483.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.1285, allocations: 0 / 483.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.1285, allocations: 4 kB / 484 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.1285, allocations: 4 kB / 484 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.75e-05/0.1286, allocations: 31.92 kB / 484 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006038/0.1292, allocations: 360.4 kB / 484.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.1294, allocations: 42.58 kB / 484.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.05e-05/0.1294, allocations: 20.91 kB / 484.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.1295, allocations: 8 kB / 484.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.1296, allocations: 63.39 kB / 484.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 3.426e-06/0.1297, allocations: 0 / 484.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002243/0.1299, allocations: 101.4 kB / 484.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.319e-05/0.1299, allocations: 55.39 kB / 484.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.1301, allocations: 136.3 kB / 484.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.1301, allocations: 29.7 kB / 484.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.975e-05/0.1302, allocations: 100 kB / 484.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.1302, allocations: 19.88 kB / 484.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.575e-05/0.1303, allocations: 25.72 kB / 484.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1304, allocations: 322.8 kB / 485.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.565e-05/0.1305, allocations: 15.98 kB / 485.3 MB, free: 492 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.718e-05/0.1305, allocations: 42.45 kB / 485.3 MB, free: 440 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.218e-05/0.1306, allocations: 54.56 kB / 485.4 MB, free: 376 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1306, allocations: 0 / 485.4 MB, free: 376 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001451/0.1308, allocations: 93.52 kB / 485.4 MB, free: 276 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.1308, allocations: 4 kB / 485.4 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.1308, allocations: 0 / 485.4 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.1308, allocations: 7.938 kB / 485.5 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.859e-05/0.1309, allocations: 7.938 kB / 485.5 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.1309, allocations: 8 kB / 485.5 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.678e-05/0.131, allocations: 15.95 kB / 485.5 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.131, allocations: 400 / 485.5 MB, free: 232 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 0.0001034/0.1311, allocations: 124.2 kB / 485.6 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.629e-05/0.1311, allocations: 7.906 kB / 485.6 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.316e-05/0.1312, allocations: 16.64 kB / 485.6 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1312, allocations: 4 kB / 485.6 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1312, allocations: 0 / 485.6 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1312, allocations: 0 / 485.6 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.1316, allocations: 358.4 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1316, allocations: 0 / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.658e-05/0.1317, allocations: 4 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1317, allocations: 4 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.1317, allocations: 0 / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1317, allocations: 0 / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1317, allocations: 0 / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002406/0.132, allocations: 199.3 kB / 486.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/0.132, allocations: 81.02 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.132, allocations: 3.984 kB / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.1322, allocations: 11.94 kB / 486.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/0.1322, allocations: 7.984 kB / 486.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.1322, allocations: 4 kB / 486.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.394e-05/0.1323, allocations: 105.3 kB / 486.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1323, allocations: 0 / 486.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002295/0.1326, allocations: 19.91 kB / 486.4 MB, free: 15.2 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.0001123/0.1327, allocations: 99.3 kB / 486.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001495/0.1328, allocations: 47.92 kB / 486.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1328, allocations: 0 / 486.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.04e-05/0.1329, allocations: 19.94 kB / 486.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.1332, allocations: 28.03 kB / 486.6 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005219/0.1337, allocations: 232.3 kB / 486.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.1341, allocations: 0.6924 MB / 487.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.53e-05/0.1341, allocations: 15.42 kB / 487.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1341, allocations: 0 / 487.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of Templates: time 0.003112/0.1373, allocations: 1.152 MB / 488.7 MB, free: 12.86 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