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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 175.7 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.3 MB / 241.4 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008503/0.0008505, allocations: 100.9 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000441/0.0004416, allocations: 8 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3029, allocations: 50.4 MB / 402.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1006/0.4036, allocations: 76.7 MB / 479.4 MB, free: 3.668 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/0.404, allocations: 76.83 kB / 479.5 MB, free: 3.594 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003128/0.4071, allocations: 1.029 MB / 480.5 MB, free: 2.574 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.719e-06/0.4071, allocations: 0 / 480.5 MB, free: 2.574 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.727e-05/0.4072, allocations: 0 / 480.5 MB, free: 2.574 MB / 346.7 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.0005094/0.4077, allocations: 348.4 kB / 480.9 MB, free: 2.184 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.712e-05/0.4078, allocations: 12.03 kB / 480.9 MB, free: 2.172 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.446e-05/0.4078, allocations: 8.844 kB / 480.9 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.4081, allocations: 184.2 kB / 481.1 MB, free: 1.945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.4082, allocations: 4.375 kB / 481.1 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.4082, allocations: 384 / 481.1 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004291/0.4086, allocations: 119.9 kB / 481.2 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.4086, allocations: 192 / 481.2 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.4087, allocations: 3.938 kB / 481.2 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.4087, allocations: 0 / 481.2 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001099/0.4088, allocations: 27.92 kB / 481.2 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002343/0.409, allocations: 161.6 kB / 481.4 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001919/0.4092, allocations: 66.55 kB / 481.5 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.395e-05/0.4093, allocations: 24.89 kB / 481.5 MB, free: 1.473 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.4094, allocations: 4.031 kB / 481.5 MB, free: 1.469 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.4094, allocations: 34.56 kB / 481.5 MB, free: 1.426 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.453e-06/0.4094, allocations: 0 / 481.5 MB, free: 1.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003229/0.4097, allocations: 89.53 kB / 481.6 MB, free: 1.332 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.781e-05/0.4098, allocations: 55.41 kB / 481.7 MB, free: 1.266 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.41, allocations: 105.8 kB / 481.8 MB, free: 1.152 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.41, allocations: 33.7 kB / 481.8 MB, free: 1.113 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.938e-05/0.4101, allocations: 84.14 kB / 481.9 MB, free: 1.027 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.37e-05/0.4101, allocations: 7.984 kB / 481.9 MB, free: 1.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-06/0.4101, allocations: 0 / 481.9 MB, free: 1.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.4103, allocations: 318.8 kB / 482.2 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.142e-05/0.4103, allocations: 0 / 482.2 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.126e-05/0.4103, allocations: 31.42 kB / 482.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.056e-05/0.4104, allocations: 39.38 kB / 482.3 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.4104, allocations: 0 / 482.3 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001122/0.4105, allocations: 61.47 kB / 482.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.4106, allocations: 4 kB / 482.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.4106, allocations: 3.938 kB / 482.3 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/0.4106, allocations: 8.5 kB / 482.3 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.855e-05/0.4107, allocations: 4 kB / 482.4 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.4107, allocations: 4 kB / 482.4 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.182e-05/0.4108, allocations: 0 / 482.4 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-06/0.4108, allocations: 3.938 kB / 482.4 MB, free: 0.5117 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.4109, allocations: 113.8 kB / 482.5 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.411, allocations: 73.52 kB / 482.5 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.52e-05/0.4111, allocations: 11.84 kB / 482.6 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.4111, allocations: 0 / 482.6 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4111, allocations: 4 kB / 482.6 MB, free: 292 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.4111, allocations: 4 kB / 482.6 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.4113, allocations: 157.7 kB / 482.7 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4113, allocations: 0 / 482.7 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.514e-05/0.4114, allocations: 15.98 kB / 482.7 MB, free: 64 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.4114, allocations: 0 / 482.7 MB, free: 64 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.4114, allocations: 3.938 kB / 482.7 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4114, allocations: 0 / 482.7 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4114, allocations: 4 kB / 482.7 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001986/0.4116, allocations: 89.11 kB / 482.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.794e-05/0.4117, allocations: 84.95 kB / 482.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.4117, allocations: 7.938 kB / 482.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.618e-05/0.4118, allocations: 7.984 kB / 482.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.236e-06/0.4118, allocations: 0 / 482.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.4118, allocations: 8 kB / 482.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.464e-05/0.4118, allocations: 79.28 kB / 483 MB, free: 15.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4118, allocations: 0 / 483 MB, free: 15.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002024/0.412, allocations: 8 kB / 483 MB, free: 15.74 MB / 362.7 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 (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.0001454/0.4122, allocations: 103.2 kB / 483.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.4123, allocations: 31.86 kB / 483.2 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.4123, allocations: 4.25 kB / 483.2 MB, free: 15.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.91e-07/0.4124, allocations: 0 / 483.2 MB, free: 15.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.4126, allocations: 24.02 kB / 483.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000332/0.413, allocations: 140.9 kB / 483.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.4133, allocations: 0.6814 MB / 484 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.113e-05/0.4134, allocations: 11.98 kB / 484 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.271e-05/0.4134, allocations: 7.438 kB / 484 MB, free: 14.68 MB / 362.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4134, allocations: 4.281 kB / 484 MB, free: 14.68 MB / 362.7 MB Notification: Performance of Templates: time 0.002666/0.4161, allocations: 325.6 kB / 484.3 MB, free: 14.36 MB / 362.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches