Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 114.9 kB / 17.74 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 188.5 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 51.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.356, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.003217/0.3593, allocations: 1.578 MB / 403 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009673/0.3603, allocations: 474.7 kB / 403.5 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.3604, allocations: 0 / 403.5 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.175e-05/0.3605, allocations: 7.875 kB / 403.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001501/0.3606, allocations: 11.92 kB / 403.5 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000351/0.361, allocations: 47.83 kB / 403.5 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.3611, allocations: 43.84 kB / 403.6 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.3613, allocations: 15.94 kB / 403.6 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.993e-05/0.3613, allocations: 23.86 kB / 403.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.149e-05/0.3614, allocations: 27.84 kB / 403.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.3615, allocations: 4 kB / 403.6 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.29e-05/0.3615, allocations: 0 / 403.6 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.201e-05/0.3615, allocations: 11.98 kB / 403.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.969e-05/0.3616, allocations: 27.81 kB / 403.7 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.3617, allocations: 55.73 kB / 403.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3617, allocations: 0 / 403.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3618, allocations: 0 / 403.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.3618, allocations: 0 / 403.7 MB, free: 6.527 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005034/0.3623, allocations: 372.3 kB / 404.1 MB, free: 6.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.3623, allocations: 8.031 kB / 404.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.3624, allocations: 8.844 kB / 404.1 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.3626, allocations: 200 kB / 404.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.554e-06/0.3626, allocations: 384 / 404.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.998e-05/0.3627, allocations: 8.375 kB / 404.3 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.363, allocations: 117.3 kB / 404.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.363, allocations: 0 / 404.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.363, allocations: 0 / 404.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.363, allocations: 4 kB / 404.4 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.388e-05/0.3631, allocations: 23.97 kB / 404.4 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000343/0.3635, allocations: 269.7 kB / 404.7 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/0.3637, allocations: 138.2 kB / 404.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.451e-05/0.3638, allocations: 37.75 kB / 404.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.3638, allocations: 0 / 404.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.3638, allocations: 34.56 kB / 404.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.3638, allocations: 0 / 404.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002686/0.3641, allocations: 77.52 kB / 405 MB, free: 5.047 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/0.3642, allocations: 85.11 kB / 405.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.3644, allocations: 137.8 kB / 405.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.3644, allocations: 25.7 kB / 405.2 MB, free: 4.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.761e-05/0.3645, allocations: 88.27 kB / 405.3 MB, free: 4.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.3645, allocations: 11.89 kB / 405.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.598e-05/0.3645, allocations: 21.7 kB / 405.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.3647, allocations: 314.8 kB / 405.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.744e-05/0.3648, allocations: 19.92 kB / 405.7 MB, free: 4.305 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.987e-05/0.3648, allocations: 27.44 kB / 405.7 MB, free: 4.266 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.83e-05/0.3649, allocations: 51.36 kB / 405.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3649, allocations: 0 / 405.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001722/0.3651, allocations: 73.58 kB / 405.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3651, allocations: 8 kB / 405.8 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.3651, allocations: 4 kB / 405.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.3652, allocations: 0 / 405.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.058e-05/0.3652, allocations: 11.98 kB / 405.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.3652, allocations: 0 / 405.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.352e-05/0.3653, allocations: 7.938 kB / 405.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.3653, allocations: 0 / 405.9 MB, free: 4.094 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.905e-05/0.3654, allocations: 125.8 kB / 406 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-05/0.3655, allocations: 45.55 kB / 406 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.582e-05/0.3655, allocations: 20.23 kB / 406.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3655, allocations: 0 / 406.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.3656, allocations: 4 kB / 406.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3656, allocations: 0 / 406.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.3658, allocations: 169.6 kB / 406.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3658, allocations: 0 / 406.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.353e-05/0.3658, allocations: 11.98 kB / 406.2 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3658, allocations: 4 kB / 406.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.3659, allocations: 4 kB / 406.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3659, allocations: 3.938 kB / 406.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3659, allocations: 4 kB / 406.2 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.3661, allocations: 176.2 kB / 406.4 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.644e-05/0.3662, allocations: 89 kB / 406.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.3662, allocations: 8 kB / 406.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.395e-05/0.3663, allocations: 0 / 406.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.798e-05/0.3663, allocations: 3.984 kB / 406.5 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.3663, allocations: 8 kB / 406.5 MB, free: 3.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.375e-05/0.3664, allocations: 106.2 kB / 406.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3664, allocations: 0 / 406.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002153/0.3666, allocations: 4 kB / 406.6 MB, free: 3.215 MB / 318.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 (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001205/0.3668, allocations: 99.98 kB / 406.7 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001471/0.3669, allocations: 40.28 kB / 406.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.3669, allocations: 4.25 kB / 406.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.283e-05/0.367, allocations: 4 kB / 406.8 MB, free: 3.062 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.3673, allocations: 39.06 kB / 406.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003589/0.3677, allocations: 197.3 kB / 407 MB, free: 2.801 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.3681, allocations: 0.6922 MB / 407.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.306e-05/0.3681, allocations: 15.42 kB / 407.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3681, allocations: 4.062 kB / 407.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of Templates: time 0.002279/0.3704, allocations: 0.7439 MB / 408.5 MB, free: 1.324 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches