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.001146/0.001146, allocations: 93.78 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001491/0.001491, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.7 MB / 246.8 MB, free: 9.785 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2043/0.2043, allocations: 46.19 MB / 345.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002927, allocations: 8 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1247, allocations: 63.56 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00184/0.1266, allocations: 1.338 MB / 484.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00098/0.1276, allocations: 0.4988 MB / 484.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.1277, allocations: 0 / 484.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.1278, allocations: 7.875 kB / 484.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.449e-05/0.1279, allocations: 7.938 kB / 484.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001866/0.1281, allocations: 27.97 kB / 485 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001421/0.1282, allocations: 79.77 kB / 485 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.1284, allocations: 28.22 kB / 485.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.712e-05/0.1284, allocations: 27.8 kB / 485.1 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.805e-05/0.1285, allocations: 19.86 kB / 485.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.99e-05/0.1285, allocations: 4 kB / 485.1 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.303e-05/0.1285, allocations: 4 kB / 485.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.373e-05/0.1286, allocations: 11.92 kB / 485.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.952e-05/0.1286, allocations: 53.5 kB / 485.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001194/0.1288, allocations: 67.94 kB / 485.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1288, allocations: 4 kB / 485.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1288, allocations: 0 / 485.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.1288, allocations: 0 / 485.3 MB, free: 1.957 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.0005595/0.1294, allocations: 381.9 kB / 485.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1294, allocations: 8.875 kB / 485.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.304e-05/0.1295, allocations: 8.844 kB / 485.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.1297, allocations: 192.2 kB / 485.8 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.1297, allocations: 12.36 kB / 485.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.1297, allocations: 12.36 kB / 485.9 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000156/0.1299, allocations: 73.98 kB / 485.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.1299, allocations: 3.938 kB / 485.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.1299, allocations: 4 kB / 485.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.13, allocations: 0 / 485.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.89e-05/0.1301, allocations: 35.98 kB / 486 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006099/0.1307, allocations: 360.4 kB / 486.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.1308, allocations: 50.5 kB / 486.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.461e-05/0.1308, allocations: 16.89 kB / 486.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.1309, allocations: 0 / 486.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00015/0.131, allocations: 79.42 kB / 486.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.131, allocations: 0 / 486.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002409/0.1313, allocations: 89.69 kB / 486.6 MB, free: 500 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.1313, allocations: 59.39 kB / 486.6 MB, free: 428 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.1315, allocations: 139.8 kB / 486.7 MB, free: 280 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.1315, allocations: 29.7 kB / 486.8 MB, free: 244 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.165e-05/0.1315, allocations: 96.12 kB / 486.9 MB, free: 144 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.108e-05/0.1316, allocations: 35.72 kB / 486.9 MB, free: 108 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.481e-05/0.1316, allocations: 17.72 kB / 486.9 MB, free: 84 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1318, allocations: 318.8 kB / 487.2 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.381e-05/0.1318, allocations: 19.98 kB / 487.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.056e-05/0.1319, allocations: 34.58 kB / 487.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.078e-05/0.132, allocations: 54.5 kB / 487.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.132, allocations: 0 / 487.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001631/0.1322, allocations: 85.53 kB / 487.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1322, allocations: 4 kB / 487.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1322, allocations: 0 / 487.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.1322, allocations: 3.938 kB / 487.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.418e-05/0.1323, allocations: 8 kB / 487.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.1323, allocations: 3.938 kB / 487.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.772e-05/0.1324, allocations: 15.98 kB / 487.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.787e-06/0.1324, allocations: 8.062 kB / 487.5 MB, free: 15.5 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 9.122e-05/0.1325, allocations: 113.8 kB / 487.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.468e-05/0.1325, allocations: 7.906 kB / 487.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.747e-05/0.1326, allocations: 20.64 kB / 487.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1326, allocations: 0 / 487.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1326, allocations: 0 / 487.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1326, allocations: 0 / 487.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003773/0.133, allocations: 358.5 kB / 488 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.133, allocations: 4 kB / 488 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.6e-05/0.1331, allocations: 7.938 kB / 488 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.1331, allocations: 4 kB / 488 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.1331, allocations: 4 kB / 488 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1331, allocations: 0 / 488 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1331, allocations: 0 / 488 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002253/0.1333, allocations: 187.4 kB / 488.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.567e-05/0.1334, allocations: 89 kB / 488.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.1334, allocations: 16.02 kB / 488.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.501e-05/0.1335, allocations: 4 kB / 488.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.886e-05/0.1336, allocations: 7.984 kB / 488.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.1336, allocations: 4 kB / 488.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.986e-05/0.1337, allocations: 105.1 kB / 488.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.613e-06/0.1337, allocations: 0 / 488.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002455/0.1339, allocations: 15.94 kB / 488.4 MB, free: 14.48 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.0001096/0.1341, allocations: 103.2 kB / 488.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001492/0.1342, allocations: 47.91 kB / 488.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1342, allocations: 0 / 488.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.441e-05/0.1343, allocations: 20 kB / 488.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.1346, allocations: 19.92 kB / 488.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005329/0.1352, allocations: 235.8 kB / 488.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.1355, allocations: 0.6971 MB / 489.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.129e-05/0.1355, allocations: 8.375 kB / 489.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.973e-05/0.1356, allocations: 27.42 kB / 489.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1356, allocations: 0 / 489.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of Templates: time 0.003388/0.139, allocations: 0.8044 MB / 490.4 MB, free: 12.46 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/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_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches