Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001922/0.001922, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.052/1.052, allocations: 177.1 MB / 205 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 273 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.138e-05/3.312e-05, allocations: 2.312 kB / 273 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.003063/0.003096, allocations: 1.551 MB / 274.5 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009231/0.004019, allocations: 470.7 kB / 275 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.482e-05/0.004104, allocations: 7.938 kB / 275 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.334e-05/0.004147, allocations: 3.938 kB / 275 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.273e-05/0.00424, allocations: 3.938 kB / 275 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003381/0.004578, allocations: 35.84 kB / 275 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.0047, allocations: 43.84 kB / 275.1 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.004807, allocations: 7.984 kB / 275.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.004978, allocations: 31.86 kB / 275.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.8e-05/0.005036, allocations: 15.97 kB / 275.1 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.005055, allocations: 4 kB / 275.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.272e-05/0.005097, allocations: 4 kB / 275.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.005115, allocations: 7.922 kB / 275.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.522e-05/0.005151, allocations: 12 kB / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.005284, allocations: 35.83 kB / 275.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.005287, allocations: 4 kB / 275.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.005288, allocations: 0 / 275.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.005293, allocations: 0 / 275.2 MB, free: 15.25 MB / 266.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.0004138/0.005706, allocations: 372.5 kB / 275.6 MB, free: 14.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.005749, allocations: 8.031 kB / 275.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.005896, allocations: 20.92 kB / 275.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.006067, allocations: 124.5 kB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.006079, allocations: 4.375 kB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.006093, allocations: 4.375 kB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.006364, allocations: 114.2 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.006376, allocations: 192 / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.006385, allocations: 384 / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.006395, allocations: 7.938 kB / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.5e-05/0.00643, allocations: 4 kB / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001249/0.006554, allocations: 120.6 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.831e-05/0.006653, allocations: 46.98 kB / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.121e-05/0.006694, allocations: 23.7 kB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.006719, allocations: 8.031 kB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.006746, allocations: 33.39 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.273e-06/0.006747, allocations: 7.938 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001825/0.006929, allocations: 53.62 kB / 276.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.006974, allocations: 55.34 kB / 276.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.007077, allocations: 169.9 kB / 276.4 MB, free: 13.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.007091, allocations: 29.7 kB / 276.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.753e-05/0.007138, allocations: 126.9 kB / 276.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.625e-06/0.007141, allocations: 0 / 276.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/0.007173, allocations: 19.38 kB / 276.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.007317, allocations: 0.4923 MB / 277 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.781e-06/0.007322, allocations: 0 / 277 MB, free: 13.22 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.888e-06/0.007326, allocations: 0 / 277 MB, free: 13.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.889e-05/0.007365, allocations: 119.2 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.764e-05/0.007403, allocations: 127.2 kB / 277.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.232e-05/0.007465, allocations: 33.59 kB / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.383e-05/0.007519, allocations: 127.2 kB / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.894e-05/0.007558, allocations: 119.2 kB / 277.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.373e-05/0.007642, allocations: 238.4 kB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.291e-05/0.007685, allocations: 135.1 kB / 277.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-05/0.007761, allocations: 246.3 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.193e-05/0.007843, allocations: 127.1 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.989e-05/0.007883, allocations: 123.2 kB / 278.4 MB, free: 11.84 MB / 266.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 0.0001144/0.007998, allocations: 271.8 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-05/0.008077, allocations: 45.69 kB / 278.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.758e-05/0.008114, allocations: 15.94 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.008116, allocations: 0 / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.008122, allocations: 3.938 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.008125, allocations: 0 / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.752e-05/0.008202, allocations: 120.6 kB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.008206, allocations: 0 / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.305e-05/0.008299, allocations: 15.98 kB / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.008303, allocations: 0 / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-06/0.008311, allocations: 0 / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.008315, allocations: 0 / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.008317, allocations: 0 / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001202/0.008437, allocations: 92.33 kB / 278.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.644e-05/0.008463, allocations: 3.984 kB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.008478, allocations: 7.938 kB / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.196e-05/0.0085, allocations: 4 kB / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-06/0.008503, allocations: 0 / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.008509, allocations: 0 / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.414e-05/0.008563, allocations: 143 kB / 279.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.008563, allocations: 0 / 279.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002372/0.0088, allocations: 8 kB / 279.1 MB, free: 11.05 MB / 266.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 0.0001145/0.008915, allocations: 91.25 kB / 279.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.529e-05/0.00898, allocations: 8 kB / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.008982, allocations: 0 / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.51e-07/0.008982, allocations: 0 / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.009219, allocations: 17.11 kB / 279.2 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000551/0.00977, allocations: 145.5 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.033e-05/0.00981, allocations: 55.36 kB / 279.4 MB, free: 10.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.163e-05/0.009822, allocations: 0 / 279.4 MB, free: 10.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.967e-05/0.009852, allocations: 8.5 kB / 279.4 MB, free: 10.67 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.009853, allocations: 0 / 279.4 MB, free: 10.67 MB / 266.7 MB Notification: Performance of Templates: time 0.002499/0.01235, allocations: 340.9 kB / 279.8 MB, free: 10.34 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.079990546684712]