Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 174.9 kB / 16.45 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.256/1.256, allocations: 205.4 MB / 222.6 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007651/0.0007653, allocations: 91.81 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06409/0.06409, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005752/0.0005753, allocations: 12 kB / 392.7 MB, free: 66.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08106/0.08166, allocations: 50.37 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold): time 0.001447/0.08315, allocations: 1.289 MB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007292/0.0839, allocations: 0.5195 MB / 444.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.151e-05/0.084, allocations: 0 / 444.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.248e-05/0.08405, allocations: 3.938 kB / 444.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001454/0.0842, allocations: 7.938 kB / 444.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.08447, allocations: 51.77 kB / 444.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.777e-05/0.08456, allocations: 59.77 kB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.464e-05/0.08465, allocations: 12 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.36e-05/0.08472, allocations: 23.86 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.61e-05/0.08479, allocations: 19.92 kB / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.045e-05/0.08481, allocations: 0 / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.268e-05/0.08483, allocations: 4 kB / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.49e-05/0.08487, allocations: 19.91 kB / 445 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.395e-05/0.0849, allocations: 41.64 kB / 445.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.703e-05/0.08497, allocations: 35.94 kB / 445.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.08499, allocations: 0 / 445.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.08499, allocations: 0 / 445.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.085, allocations: 0 / 445.1 MB, free: 13.68 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004164/0.08542, allocations: 367.2 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.08547, allocations: 12.03 kB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.627e-05/0.08552, allocations: 7.906 kB / 445.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.08567, allocations: 211.2 kB / 445.7 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.08569, allocations: 4 kB / 445.7 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.17e-05/0.08572, allocations: 8 kB / 445.7 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.086, allocations: 126.7 kB / 445.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.08602, allocations: 4 kB / 445.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.08604, allocations: 4 kB / 445.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.08604, allocations: 0 / 445.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.674e-05/0.08614, allocations: 27.92 kB / 445.9 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002697/0.08641, allocations: 291.4 kB / 446.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.77e-05/0.08652, allocations: 94.42 kB / 446.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.263e-05/0.08659, allocations: 51.48 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.08662, allocations: 0 / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.61e-05/0.08665, allocations: 42.5 kB / 446.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 9.72e-07/0.08665, allocations: 0 / 446.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002595/0.08692, allocations: 109.4 kB / 446.5 MB, free: 12.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/0.08697, allocations: 136.5 kB / 446.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.847e-05/0.08706, allocations: 138.8 kB / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.08708, allocations: 33.7 kB / 446.8 MB, free: 11.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.437e-05/0.08712, allocations: 92.31 kB / 446.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.475e-05/0.08714, allocations: 7.906 kB / 446.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-06/0.08715, allocations: 4 kB / 446.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.545e-05/0.08722, allocations: 318.8 kB / 447.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.82e-05/0.08728, allocations: 12 kB / 447.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.787e-05/0.08733, allocations: 48.28 kB / 447.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.971e-05/0.08739, allocations: 23.92 kB / 447.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.0874, allocations: 0 / 447.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001347/0.08754, allocations: 89.52 kB / 447.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.08756, allocations: 4 kB / 447.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.08757, allocations: 3.938 kB / 447.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.08759, allocations: 4 kB / 447.3 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.863e-05/0.08767, allocations: 15.94 kB / 447.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.08769, allocations: 3.984 kB / 447.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.779e-05/0.08774, allocations: 11.94 kB / 447.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.08775, allocations: 12.09 kB / 447.4 MB, free: 11.09 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (6): * Single equations (assignments): 6 * 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 5.739e-05/0.08782, allocations: 122.5 kB / 447.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.121e-05/0.08789, allocations: 57.53 kB / 447.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.242e-05/0.08793, allocations: 15.86 kB / 447.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.08794, allocations: 4 kB / 447.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.08795, allocations: 0 / 447.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.08796, allocations: 0 / 447.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.0881, allocations: 185.6 kB / 447.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.08811, allocations: 3.984 kB / 447.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.323e-05/0.08818, allocations: 16.06 kB / 447.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.08819, allocations: 0 / 447.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.0882, allocations: 0 / 447.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.0882, allocations: 4 kB / 447.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.08821, allocations: 7.922 kB / 447.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001499/0.08837, allocations: 206 kB / 448 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-05/0.08841, allocations: 96.91 kB / 448.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.08843, allocations: 4 kB / 448.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.793e-05/0.08852, allocations: 0 / 448.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.988e-05/0.08855, allocations: 4 kB / 448.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.08856, allocations: 8.172 kB / 448.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.697e-05/0.08862, allocations: 112.6 kB / 448.2 MB, free: 10.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08862, allocations: 0 / 448.2 MB, free: 10.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000204/0.08883, allocations: 8 kB / 448.2 MB, free: 10.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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 8.215e-05/0.08892, allocations: 99.17 kB / 448.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001471/0.08907, allocations: 47.92 kB / 448.4 MB, free: 9.992 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.08908, allocations: 4.312 kB / 448.4 MB, free: 9.988 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.154e-05/0.08913, allocations: 15.98 kB / 448.4 MB, free: 9.973 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003841/0.08952, allocations: 41.31 kB / 448.4 MB, free: 9.934 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002998/0.08983, allocations: 249.8 kB / 448.7 MB, free: 9.648 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001175/0.08996, allocations: 0.6965 MB / 449.4 MB, free: 8.926 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.914e-05/0.08999, allocations: 11.44 kB / 449.4 MB, free: 8.914 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.09, allocations: 0 / 449.4 MB, free: 8.914 MB / 298.7 MB Notification: Performance of Templates: time 0.001825/0.09183, allocations: 0.9212 MB / 450.3 MB, free: 7.996 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches