Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.00127/0.00127, allocations: 200 kB / 18.01 MB, free: 5.055 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.618/1.618, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/0.3773, allocations: 49.42 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.003493/0.3809, allocations: 1.497 MB / 402.2 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009306/0.3818, allocations: 430.9 kB / 402.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.487e-05/0.3819, allocations: 0 / 402.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.643e-05/0.382, allocations: 3.938 kB / 402.6 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.006e-05/0.3821, allocations: 3.938 kB / 402.6 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003016/0.3824, allocations: 35.89 kB / 402.7 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001153/0.3825, allocations: 43.8 kB / 402.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.3827, allocations: 12 kB / 402.7 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.91e-05/0.3828, allocations: 19.91 kB / 402.8 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.618e-05/0.3828, allocations: 15.92 kB / 402.8 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.804e-05/0.3829, allocations: 4 kB / 402.8 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.34e-05/0.3829, allocations: 4 kB / 402.8 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.999e-05/0.3829, allocations: 4 kB / 402.8 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.842e-05/0.383, allocations: 15.88 kB / 402.8 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.3831, allocations: 39.88 kB / 402.8 MB, free: 6.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3831, allocations: 7.938 kB / 402.8 MB, free: 6.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3831, allocations: 4 kB / 402.9 MB, free: 6.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.3831, allocations: 0 / 402.9 MB, free: 6.754 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005447/0.3837, allocations: 351.6 kB / 403.2 MB, free: 6.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3838, allocations: 8.031 kB / 403.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.944e-05/0.3838, allocations: 8.844 kB / 403.2 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.3841, allocations: 176.2 kB / 403.4 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.3841, allocations: 384 / 403.4 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.3841, allocations: 8.375 kB / 403.4 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.3845, allocations: 119.6 kB / 403.5 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.3845, allocations: 0 / 403.5 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.3845, allocations: 3.984 kB / 403.5 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.3846, allocations: 4 kB / 403.5 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.739e-05/0.3846, allocations: 23.92 kB / 403.5 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001923/0.3848, allocations: 165.6 kB / 403.7 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.385, allocations: 54.55 kB / 403.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.04e-05/0.3851, allocations: 28.92 kB / 403.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.3851, allocations: 0 / 403.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.3852, allocations: 34.5 kB / 403.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.563e-06/0.3852, allocations: 4 kB / 403.8 MB, free: 5.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002721/0.3855, allocations: 77.52 kB / 403.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.426e-05/0.3855, allocations: 59.34 kB / 404 MB, free: 5.473 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.3857, allocations: 113.8 kB / 404.1 MB, free: 5.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.3857, allocations: 25.7 kB / 404.1 MB, free: 5.32 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.669e-05/0.3858, allocations: 88.14 kB / 404.2 MB, free: 5.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.436e-06/0.3858, allocations: 0 / 404.2 MB, free: 5.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.42e-05/0.3858, allocations: 21.72 kB / 404.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.386, allocations: 314.8 kB / 404.5 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.62e-05/0.386, allocations: 4 kB / 404.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.832e-05/0.386, allocations: 31.38 kB / 404.5 MB, free: 4.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.207e-05/0.3861, allocations: 31.44 kB / 404.6 MB, free: 4.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3861, allocations: 0 / 404.6 MB, free: 4.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.457e-05/0.3862, allocations: 57.56 kB / 404.6 MB, free: 4.734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.3862, allocations: 11.94 kB / 404.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.3862, allocations: 0 / 404.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.3863, allocations: 3.938 kB / 404.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.117e-05/0.3863, allocations: 8 kB / 404.7 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.3864, allocations: 4.109 kB / 404.7 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.285e-05/0.3864, allocations: 8 kB / 404.7 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.3864, allocations: 0 / 404.7 MB, free: 4.699 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 0.0001107/0.3865, allocations: 113.8 kB / 404.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.3866, allocations: 69.47 kB / 404.8 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.049e-05/0.3867, allocations: 7.891 kB / 404.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3867, allocations: 0 / 404.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3867, allocations: 0 / 404.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3867, allocations: 0 / 404.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001306/0.3869, allocations: 169.7 kB / 405 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3869, allocations: 0 / 405 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.764e-05/0.3869, allocations: 4 kB / 405 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.902e-06/0.3869, allocations: 8.266 kB / 405 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.3869, allocations: 0 / 405 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.387, allocations: 0 / 405 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.387, allocations: 0 / 405 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.3871, allocations: 93.31 kB / 405.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.3872, allocations: 93.03 kB / 405.2 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.3872, allocations: 0 / 405.2 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.075e-05/0.3873, allocations: 12 kB / 405.2 MB, free: 4.031 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-06/0.3873, allocations: 3.938 kB / 405.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.3873, allocations: 0 / 405.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.293e-05/0.3874, allocations: 91.27 kB / 405.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3874, allocations: 0 / 405.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001969/0.3876, allocations: 4 kB / 405.3 MB, free: 3.934 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0001567/0.3877, allocations: 104 kB / 405.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001489/0.3879, allocations: 27.92 kB / 405.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3879, allocations: 0 / 405.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.51e-07/0.3879, allocations: 0 / 405.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.3882, allocations: 23.98 kB / 405.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003402/0.3885, allocations: 142.7 kB / 405.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.3888, allocations: 0.6924 MB / 406.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.968e-05/0.3889, allocations: 0 / 406.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.288e-05/0.3889, allocations: 19.38 kB / 406.3 MB, free: 2.871 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3889, allocations: 0 / 406.3 MB, free: 2.871 MB / 318.1 MB Notification: Performance of Templates: time 0.003048/0.392, allocations: 360.9 kB / 406.7 MB, free: 2.52 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches