Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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) 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001054/0.001054, allocations: 100.4 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 198.2 kB / 17.91 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002246/0.0002247, allocations: 4 kB / 307.1 MB, free: 1.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1326, allocations: 51.54 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002894/0.1356, allocations: 1.56 MB / 360.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.1378, allocations: 1.166 MB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.138, allocations: 4 kB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004209/0.1384, allocations: 67.73 kB / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004/0.1388, allocations: 103.6 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007834/0.1396, allocations: 187.1 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002941/0.1399, allocations: 147.5 kB / 361.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.1401, allocations: 33.53 kB / 361.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.1402, allocations: 71.62 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.1403, allocations: 63.69 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.1404, allocations: 4 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001663/0.1405, allocations: 47.97 kB / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.294e-05/0.1406, allocations: 47.83 kB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.842e-05/0.1407, allocations: 53.58 kB / 362.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002697/0.141, allocations: 175.9 kB / 362.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.141, allocations: 8 kB / 362.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.141, allocations: 0 / 362.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1411, allocations: 0 / 362.4 MB, free: 9.902 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008047/0.1419, allocations: 0.5077 MB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.1419, allocations: 8.031 kB / 362.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.524e-05/0.142, allocations: 23.72 kB / 362.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004289/0.1424, allocations: 266.5 kB / 363.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.1425, allocations: 8 kB / 363.2 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.1425, allocations: 8 kB / 363.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003812/0.1429, allocations: 155.5 kB / 363.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.1429, allocations: 3.938 kB / 363.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.1429, allocations: 7.938 kB / 363.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/0.1429, allocations: 11.98 kB / 363.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001204/0.1431, allocations: 27.98 kB / 363.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006371/0.1437, allocations: 390.3 kB / 363.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002838/0.144, allocations: 119.9 kB / 363.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.1441, allocations: 42.56 kB / 363.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.1442, allocations: 4 kB / 363.9 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002497/0.1444, allocations: 83.31 kB / 364 MB, free: 8.031 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.903e-06/0.1444, allocations: 3.938 kB / 364 MB, free: 8.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004384/0.1449, allocations: 157.3 kB / 364.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/0.145, allocations: 158.2 kB / 364.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003806/0.1454, allocations: 330.9 kB / 364.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.1454, allocations: 37.69 kB / 364.7 MB, free: 7.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.1456, allocations: 124.1 kB / 364.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.1456, allocations: 15.75 kB / 364.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.186e-06/0.1456, allocations: 7.938 kB / 364.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1457, allocations: 334.8 kB / 365.1 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.262e-05/0.1458, allocations: 23.98 kB / 365.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.1459, allocations: 86.84 kB / 365.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.589e-05/0.146, allocations: 31.95 kB / 365.3 MB, free: 6.652 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.146, allocations: 0 / 365.3 MB, free: 6.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002749/0.1463, allocations: 133.3 kB / 365.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1464, allocations: 4 kB / 365.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1464, allocations: 0 / 365.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.1464, allocations: 4 kB / 365.4 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.1465, allocations: 12 kB / 365.4 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.1465, allocations: 11.92 kB / 365.4 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8e-05/0.1466, allocations: 8 kB / 365.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.1466, allocations: 4 kB / 365.5 MB, free: 6.473 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.1468, allocations: 157.8 kB / 365.6 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.249e-05/0.1469, allocations: 69.34 kB / 365.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.976e-05/0.147, allocations: 29.7 kB / 365.7 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.147, allocations: 0 / 365.7 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.147, allocations: 0 / 365.7 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.147, allocations: 3.938 kB / 365.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002624/0.1473, allocations: 249.6 kB / 366 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1473, allocations: 3.953 kB / 366 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.803e-05/0.1473, allocations: 12 kB / 366 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1474, allocations: 4 kB / 366 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.1474, allocations: 4.062 kB / 366 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1474, allocations: 3.984 kB / 366 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1474, allocations: 4.312 kB / 366 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.1477, allocations: 158.4 kB / 366.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.1478, allocations: 120.8 kB / 366.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.808e-05/0.1478, allocations: 11.98 kB / 366.3 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.493e-05/0.1479, allocations: 12 kB / 366.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.453e-05/0.148, allocations: 11.92 kB / 366.3 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.148, allocations: 4 kB / 366.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002562/0.1483, allocations: 249.9 kB / 366.5 MB, free: 5.281 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1483, allocations: 0 / 366.5 MB, free: 5.281 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.1486, allocations: 32 kB / 366.6 MB, free: 5.25 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001086/0.1497, allocations: 426.3 kB / 367 MB, free: 4.965 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002206/0.1499, allocations: 75.91 kB / 367.1 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1499, allocations: 0 / 367.1 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.995e-05/0.15, allocations: 35.92 kB / 367.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003961/0.1504, allocations: 56.55 kB / 367.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006264/0.151, allocations: 400.7 kB / 367.5 MB, free: 4.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.1514, allocations: 0.7517 MB / 368.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.706e-05/0.1515, allocations: 33.47 kB / 368.3 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.992e-05/0.1515, allocations: 19.44 kB / 368.3 MB, free: 3.547 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1515, allocations: 3.938 kB / 368.4 MB, free: 3.543 MB / 302.1 MB Notification: Performance of Templates: time 0.006092/0.1576, allocations: 2.605 MB / 371 MB, free: 0.9531 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches