Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 108.5 kB / 17.06 MB, free: 6.023 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.001914/0.001914, allocations: 192 kB / 18 MB, free: 5.105 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.347/1.347, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 47.92 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2791, allocations: 49.43 MB / 400.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003603/0.2828, allocations: 1.543 MB / 402.3 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004925/0.2833, allocations: 139.5 kB / 402.4 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.2834, allocations: 3.938 kB / 402.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.69e-05/0.2835, allocations: 7.938 kB / 402.4 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001598/0.2837, allocations: 3.938 kB / 402.4 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002949/0.284, allocations: 43.89 kB / 402.5 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.2842, allocations: 31.86 kB / 402.5 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.2843, allocations: 23.97 kB / 402.5 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.106e-05/0.2843, allocations: 11.94 kB / 402.5 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.327e-05/0.2844, allocations: 15.92 kB / 402.5 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.2844, allocations: 3.938 kB / 402.6 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.574e-05/0.2844, allocations: 4 kB / 402.6 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.432e-05/0.2845, allocations: 11.94 kB / 402.6 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.67e-05/0.2846, allocations: 19.86 kB / 402.6 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001583/0.2847, allocations: 51.75 kB / 402.6 MB, free: 7.082 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2847, allocations: 3.938 kB / 402.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2847, allocations: 0 / 402.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.351e-06/0.2848, allocations: 4 kB / 402.6 MB, free: 7.074 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.0005585/0.2853, allocations: 364.5 kB / 403 MB, free: 6.668 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.2854, allocations: 12.03 kB / 403 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.265e-05/0.2854, allocations: 4.844 kB / 403 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.2858, allocations: 192.2 kB / 403.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.2858, allocations: 384 / 403.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.2858, allocations: 8.375 kB / 403.2 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000341/0.2862, allocations: 117.5 kB / 403.3 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2862, allocations: 192 / 403.3 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.2862, allocations: 7.938 kB / 403.3 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.2862, allocations: 0 / 403.3 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.771e-05/0.2863, allocations: 19.98 kB / 403.4 MB, free: 6.258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.2867, allocations: 257.8 kB / 403.6 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002234/0.2869, allocations: 142.2 kB / 403.7 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.588e-05/0.287, allocations: 33.7 kB / 403.8 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.287, allocations: 4 kB / 403.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.287, allocations: 38.5 kB / 403.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.2871, allocations: 0 / 403.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002556/0.2873, allocations: 77.56 kB / 403.9 MB, free: 5.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.2874, allocations: 85.05 kB / 404 MB, free: 5.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.2875, allocations: 133.5 kB / 404.1 MB, free: 5.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.2875, allocations: 29.7 kB / 404.1 MB, free: 5.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.045e-05/0.2876, allocations: 88.12 kB / 404.2 MB, free: 5.238 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.908e-05/0.2876, allocations: 11.89 kB / 404.2 MB, free: 5.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-05/0.2877, allocations: 13.72 kB / 404.3 MB, free: 5.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.2878, allocations: 322.8 kB / 404.6 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.595e-05/0.2878, allocations: 4 kB / 404.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.459e-05/0.2879, allocations: 39.42 kB / 404.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.891e-05/0.288, allocations: 47.36 kB / 404.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.288, allocations: 3.938 kB / 404.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001565/0.2881, allocations: 69.47 kB / 404.7 MB, free: 4.691 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.2882, allocations: 8 kB / 404.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2882, allocations: 0 / 404.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.2882, allocations: 3.984 kB / 404.7 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.912e-05/0.2883, allocations: 11.94 kB / 404.8 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.2883, allocations: 4 kB / 404.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.965e-05/0.2883, allocations: 0 / 404.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.325e-06/0.2883, allocations: 4 kB / 404.8 MB, free: 4.66 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 8.443e-05/0.2884, allocations: 125.9 kB / 404.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.399e-05/0.2885, allocations: 49.61 kB / 404.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.743e-05/0.2885, allocations: 12.23 kB / 404.9 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2885, allocations: 0 / 404.9 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.2886, allocations: 0 / 404.9 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.2886, allocations: 3.938 kB / 404.9 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.2888, allocations: 173.5 kB / 405.1 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2888, allocations: 4 kB / 405.1 MB, free: 4.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.336e-05/0.2888, allocations: 4 kB / 405.1 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.2888, allocations: 8 kB / 405.1 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.2888, allocations: 0 / 405.1 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.2888, allocations: 3.984 kB / 405.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2888, allocations: 3.938 kB / 405.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/0.289, allocations: 168.2 kB / 405.3 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.265e-05/0.2891, allocations: 85.09 kB / 405.4 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.2891, allocations: 3.984 kB / 405.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.627e-05/0.2892, allocations: 8 kB / 405.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.204e-05/0.2892, allocations: 3.938 kB / 405.4 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.2892, allocations: 8 kB / 405.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.28e-05/0.2893, allocations: 99.27 kB / 405.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2893, allocations: 0 / 405.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002268/0.2895, allocations: 8 kB / 405.5 MB, free: 3.793 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.000121/0.2897, allocations: 104 kB / 405.6 MB, free: 3.684 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.2898, allocations: 35.92 kB / 405.7 MB, free: 3.648 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2898, allocations: 0 / 405.7 MB, free: 3.648 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.184e-05/0.2898, allocations: 7.984 kB / 405.7 MB, free: 3.641 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.2902, allocations: 26.53 kB / 405.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003559/0.2905, allocations: 156.8 kB / 405.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.2908, allocations: 0.7008 MB / 406.5 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.175e-05/0.2909, allocations: 7.938 kB / 406.5 MB, free: 2.703 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.703e-05/0.2909, allocations: 7.438 kB / 406.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2909, allocations: 0 / 406.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of Templates: time 0.002835/0.2938, allocations: 0.491 MB / 407 MB, free: 2.207 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches