Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008611/0.0008612, allocations: 101.5 kB / 17.01 MB, free: 6.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009412/0.0009412, allocations: 194.3 kB / 17.91 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002598/0.0002599, allocations: 11.98 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1364, allocations: 51.51 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.002239/0.1387, allocations: 1.27 MB / 359.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.1398, allocations: 0.503 MB / 360.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.1399, allocations: 0 / 360.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.325e-05/0.14, allocations: 0 / 360.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.1401, allocations: 19.92 kB / 360.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.1404, allocations: 39.88 kB / 360.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.1406, allocations: 43.8 kB / 360.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.774e-05/0.1407, allocations: 7.984 kB / 360.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.1408, allocations: 23.92 kB / 360.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.037e-05/0.1409, allocations: 15.92 kB / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.361e-05/0.1409, allocations: 0 / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.38e-05/0.1409, allocations: 4 kB / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.352e-05/0.141, allocations: 15.92 kB / 360.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.808e-05/0.141, allocations: 37.7 kB / 360.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.436e-05/0.1411, allocations: 27.94 kB / 360.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1411, allocations: 0 / 360.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1411, allocations: 0 / 360.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.1411, allocations: 0 / 360.6 MB, free: 11.42 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005383/0.1417, allocations: 374 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1417, allocations: 8.031 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.1419, allocations: 23.89 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.1421, allocations: 186.9 kB / 361.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.1421, allocations: 4 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.1422, allocations: 7.953 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.1424, allocations: 93.03 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.1425, allocations: 4 kB / 361.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.1425, allocations: 0 / 361.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.1425, allocations: 4 kB / 361.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.733e-05/0.1426, allocations: 19.98 kB / 361.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003563/0.143, allocations: 265.7 kB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.477e-05/0.1431, allocations: 45.22 kB / 361.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.418e-05/0.1431, allocations: 25.7 kB / 361.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.1431, allocations: 0 / 361.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.1432, allocations: 42.56 kB / 361.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.1432, allocations: 0 / 361.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002662/0.1435, allocations: 73.52 kB / 361.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.1435, allocations: 77.11 kB / 361.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.1437, allocations: 134.2 kB / 362 MB, free: 9.836 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.1437, allocations: 33.89 kB / 362 MB, free: 9.797 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.376e-05/0.1438, allocations: 92.12 kB / 362.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.1438, allocations: 4 kB / 362.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.1438, allocations: 0 / 362.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.144, allocations: 314.8 kB / 362.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.095e-05/0.144, allocations: 11.98 kB / 362.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.466e-05/0.1441, allocations: 25.72 kB / 362.5 MB, free: 9.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.472e-05/0.1441, allocations: 15.92 kB / 362.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1441, allocations: 3.938 kB / 362.5 MB, free: 9.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001123/0.1442, allocations: 57.59 kB / 362.5 MB, free: 9.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.1443, allocations: 4 kB / 362.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1443, allocations: 128 / 362.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.1443, allocations: 8 kB / 362.6 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.223e-05/0.1444, allocations: 7.984 kB / 362.6 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1444, allocations: 3.984 kB / 362.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.666e-05/0.1444, allocations: 7.938 kB / 362.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.1444, allocations: 3.938 kB / 362.6 MB, free: 9.223 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.519e-05/0.1445, allocations: 121.8 kB / 362.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.809e-05/0.1446, allocations: 41.61 kB / 362.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.1447, allocations: 19.84 kB / 362.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.1447, allocations: 0 / 362.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1447, allocations: 0 / 362.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1447, allocations: 0 / 362.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.1449, allocations: 173.6 kB / 362.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1449, allocations: 0 / 362.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.671e-05/0.1449, allocations: 7.984 kB / 362.9 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1449, allocations: 4 kB / 362.9 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.1449, allocations: 0 / 362.9 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.145, allocations: 0 / 362.9 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.145, allocations: 4 kB / 362.9 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001853/0.1452, allocations: 168.2 kB / 363.1 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.405e-05/0.1452, allocations: 92.95 kB / 363.2 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.1452, allocations: 0 / 363.2 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.525e-05/0.1453, allocations: 12.03 kB / 363.2 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.44e-05/0.1454, allocations: 0 / 363.2 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.1454, allocations: 0 / 363.2 MB, free: 8.484 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.47e-05/0.1455, allocations: 113.8 kB / 363.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1455, allocations: 0 / 363.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002121/0.1457, allocations: 4 kB / 363.3 MB, free: 8.371 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0001136/0.1458, allocations: 95.25 kB / 363.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001566/0.146, allocations: 31.92 kB / 363.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.146, allocations: 0 / 363.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.181e-05/0.146, allocations: 15.92 kB / 363.5 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.1464, allocations: 19.92 kB / 363.5 MB, free: 8.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003619/0.1468, allocations: 185.9 kB / 363.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.1471, allocations: 0.6848 MB / 364.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.383e-05/0.1471, allocations: 11.98 kB / 364.4 MB, free: 7.266 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.412e-05/0.1471, allocations: 7.438 kB / 364.4 MB, free: 7.258 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1471, allocations: 0 / 364.4 MB, free: 7.258 MB / 302.1 MB Notification: Performance of Templates: time 0.002649/0.1498, allocations: 420 kB / 364.8 MB, free: 6.855 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches