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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 143.9 kB / 24.89 MB, free: 9.203 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.88/0.88, allocations: 173.4 MB / 201.5 MB, free: 9.203 MB / 186.7 MB " [Timeout remaining time 179] 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 268.5 MB, free: 6.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.205e-05/2.342e-05, allocations: 10.25 kB / 268.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.00231/0.002334, allocations: 1.534 MB / 270 MB, free: 4.637 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005438/0.002877, allocations: 434.7 kB / 270.4 MB, free: 4.207 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.492e-05/0.002932, allocations: 0 / 270.4 MB, free: 4.207 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.581e-05/0.002958, allocations: 3.938 kB / 270.4 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.566e-05/0.003024, allocations: 11.88 kB / 270.5 MB, free: 4.191 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002028/0.003227, allocations: 31.84 kB / 270.5 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.996e-05/0.003307, allocations: 39.84 kB / 270.5 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.031e-05/0.003377, allocations: 11.98 kB / 270.5 MB, free: 4.109 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.882e-05/0.003456, allocations: 19.92 kB / 270.6 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.245e-05/0.003498, allocations: 15.92 kB / 270.6 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.748e-05/0.003516, allocations: 8 kB / 270.6 MB, free: 4.066 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.404e-06/0.003523, allocations: 0 / 270.6 MB, free: 4.066 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.768e-05/0.003541, allocations: 7.984 kB / 270.6 MB, free: 4.059 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.056e-05/0.003561, allocations: 11.98 kB / 270.6 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 7.41e-05/0.003635, allocations: 27.86 kB / 270.6 MB, free: 4.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.003638, allocations: 0 / 270.6 MB, free: 4.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.003639, allocations: 0 / 270.6 MB, free: 4.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.003642, allocations: 0 / 270.6 MB, free: 4.02 MB / 250.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.0002597/0.003902, allocations: 240.9 kB / 270.9 MB, free: 3.762 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.003932, allocations: 8.922 kB / 270.9 MB, free: 3.754 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.455e-05/0.003957, allocations: 12.94 kB / 270.9 MB, free: 3.742 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.004074, allocations: 129.6 kB / 271 MB, free: 3.59 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.324e-06/0.004081, allocations: 4.375 kB / 271 MB, free: 3.586 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-06/0.004089, allocations: 384 / 271 MB, free: 3.586 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.004243, allocations: 96.56 kB / 271.1 MB, free: 3.477 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.902e-06/0.004249, allocations: 4.188 kB / 271.1 MB, free: 3.473 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.272e-06/0.004255, allocations: 4.375 kB / 271.1 MB, free: 3.469 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.00426, allocations: 7.938 kB / 271.1 MB, free: 3.461 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.867e-05/0.004279, allocations: 11.92 kB / 271.1 MB, free: 3.449 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.304e-05/0.004332, allocations: 57 kB / 271.2 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.032e-05/0.004382, allocations: 34.5 kB / 271.2 MB, free: 3.336 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.735e-05/0.004399, allocations: 12.86 kB / 271.2 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.108e-05/0.00441, allocations: 0 / 271.2 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.004428, allocations: 34.56 kB / 271.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 7.62e-07/0.004429, allocations: 0 / 271.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 8.991e-05/0.004519, allocations: 49.62 kB / 271.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.004552, allocations: 55.39 kB / 271.4 MB, free: 3.156 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.042e-05/0.004612, allocations: 126.6 kB / 271.5 MB, free: 3.02 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.295e-06/0.004621, allocations: 25.7 kB / 271.5 MB, free: 2.988 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.012e-05/0.004641, allocations: 84.12 kB / 271.6 MB, free: 2.902 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.032e-06/0.004642, allocations: 0 / 271.6 MB, free: 2.902 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.667e-05/0.004658, allocations: 13.72 kB / 271.6 MB, free: 2.883 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.518e-05/0.004724, allocations: 318.8 kB / 271.9 MB, free: 2.562 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.675e-06/0.004726, allocations: 0 / 271.9 MB, free: 2.562 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.787e-06/0.00473, allocations: 0 / 271.9 MB, free: 2.562 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.694e-05/0.004747, allocations: 79.28 kB / 272 MB, free: 2.484 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.584e-05/0.004763, allocations: 75.28 kB / 272.1 MB, free: 2.41 MB / 250.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.345e-05/0.004796, allocations: 33.62 kB / 272.1 MB, free: 2.371 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.004819, allocations: 87.28 kB / 272.2 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.004836, allocations: 75.28 kB / 272.3 MB, free: 2.211 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.554e-05/0.004872, allocations: 154.5 kB / 272.4 MB, free: 2.059 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.743e-05/0.004889, allocations: 79.28 kB / 272.5 MB, free: 1.98 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.902e-05/0.004918, allocations: 150.6 kB / 272.7 MB, free: 1.832 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.033e-05/0.004958, allocations: 83.28 kB / 272.7 MB, free: 1.75 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.004977, allocations: 87.28 kB / 272.8 MB, free: 1.664 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (0): * Single equations (assignments): 0 * 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 6.017e-05/0.005037, allocations: 189.1 kB / 273 MB, free: 1.469 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.094e-05/0.005078, allocations: 49.8 kB / 273.1 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.331e-05/0.005101, allocations: 4 kB / 273.1 MB, free: 1.402 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.005103, allocations: 4 kB / 273.1 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-06/0.005104, allocations: 0 / 273.1 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.005107, allocations: 4 kB / 273.1 MB, free: 1.395 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.584e-05/0.005153, allocations: 73.83 kB / 273.1 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.005155, allocations: 4 kB / 273.1 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.768e-05/0.005213, allocations: 4 kB / 273.1 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.005217, allocations: 0 / 273.1 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-06/0.00522, allocations: 3.938 kB / 273.1 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.005222, allocations: 4 kB / 273.2 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.005223, allocations: 0 / 273.2 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.372e-05/0.005256, allocations: 57.06 kB / 273.2 MB, free: 1.215 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.517e-05/0.005272, allocations: 7.938 kB / 273.2 MB, free: 1.207 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.587e-06/0.00528, allocations: 4 kB / 273.2 MB, free: 1.203 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.088e-05/0.005291, allocations: 0 / 273.2 MB, free: 1.203 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-06/0.005295, allocations: 3.984 kB / 273.2 MB, free: 1.199 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.005299, allocations: 0 / 273.2 MB, free: 1.199 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.548e-05/0.005314, allocations: 16.86 kB / 273.2 MB, free: 1.18 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005314, allocations: 0 / 273.2 MB, free: 1.18 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001095/0.005424, allocations: 4 kB / 273.2 MB, free: 1.176 MB / 250.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.361e-05/0.005497, allocations: 84.34 kB / 273.3 MB, free: 1.086 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 3.592e-05/0.005533, allocations: 11.98 kB / 273.3 MB, free: 1.074 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.005535, allocations: 0 / 273.3 MB, free: 1.074 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.005536, allocations: 0 / 273.3 MB, free: 1.074 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001012/0.005637, allocations: 24.09 kB / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003086/0.005946, allocations: 131.4 kB / 273.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.825e-05/0.005974, allocations: 59.34 kB / 273.5 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.043e-06/0.005981, allocations: 0 / 273.5 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.436e-05/0.006015, allocations: 51.38 kB / 273.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of SimCode: time 6.01e-07/0.006016, allocations: 4 kB / 273.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of Templates: time 0.001654/0.00767, allocations: 346.3 kB / 273.9 MB, free: 440 kB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.364140704739839]