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.001059/0.001059, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001056/0.001056, allocations: 160.5 kB / 24.99 MB, free: 9.316 MB / 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.079/1.079, allocations: 177.1 MB / 205.3 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 2.004e-06/2.004e-06, allocations: 0 / 273.1 MB, free: 1.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.873e-05/3.074e-05, allocations: 2.312 kB / 273.1 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.0027/0.002731, allocations: 1.548 MB / 274.6 MB, free: 232 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008513/0.003582, allocations: 470.7 kB / 275.1 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.801e-05/0.00367, allocations: 0 / 275.1 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.514e-05/0.003706, allocations: 7.922 kB / 275.1 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.258e-05/0.003788, allocations: 11.94 kB / 275.1 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.004113, allocations: 31.84 kB / 275.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.004216, allocations: 39.84 kB / 275.2 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.004317, allocations: 7.984 kB / 275.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.004472, allocations: 31.86 kB / 275.2 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.174e-05/0.004524, allocations: 15.97 kB / 275.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.00454, allocations: 4 kB / 275.2 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.79e-05/0.004577, allocations: 4 kB / 275.2 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.625e-05/0.004594, allocations: 7.938 kB / 275.2 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.463e-05/0.004628, allocations: 15.98 kB / 275.3 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.004757, allocations: 31.84 kB / 275.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.00476, allocations: 0 / 275.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.004761, allocations: 0 / 275.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.004765, allocations: 4 kB / 275.3 MB, free: 15.55 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.0004152/0.00518, allocations: 376.5 kB / 275.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.005223, allocations: 12.03 kB / 275.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.005371, allocations: 12.92 kB / 275.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.00554, allocations: 124.5 kB / 275.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.005552, allocations: 8.359 kB / 275.8 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.005563, allocations: 8.375 kB / 275.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002464/0.005809, allocations: 110.2 kB / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.005817, allocations: 192 / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.679e-06/0.005826, allocations: 384 / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.005835, allocations: 3.938 kB / 275.9 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.552e-05/0.005871, allocations: 7.938 kB / 275.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001262/0.005997, allocations: 120.6 kB / 276.1 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.364e-05/0.006081, allocations: 47.05 kB / 276.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.595e-05/0.006117, allocations: 19.72 kB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.006134, allocations: 0 / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.006158, allocations: 37.39 kB / 276.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.006159, allocations: 0 / 276.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001642/0.006323, allocations: 61.59 kB / 276.2 MB, free: 14.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.006366, allocations: 55.34 kB / 276.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.782e-05/0.006454, allocations: 169.9 kB / 276.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.006465, allocations: 29.7 kB / 276.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.964e-05/0.006505, allocations: 126.9 kB / 276.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.204e-06/0.006507, allocations: 8 kB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.45e-05/0.006531, allocations: 15.38 kB / 276.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.006735, allocations: 0.4884 MB / 277.1 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.841e-06/0.00674, allocations: 0 / 277.1 MB, free: 13.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.601e-06/0.006746, allocations: 4 kB / 277.1 MB, free: 13.53 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.861e-05/0.006775, allocations: 119.2 kB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.567e-05/0.0068, allocations: 119.2 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.197e-05/0.006862, allocations: 37.59 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/0.0069, allocations: 123.2 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.952e-05/0.00693, allocations: 119.2 kB / 277.6 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.653e-05/0.006996, allocations: 246.3 kB / 277.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.049e-05/0.007027, allocations: 135.2 kB / 278 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.614e-05/0.007083, allocations: 246.3 kB / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.781e-05/0.007151, allocations: 127.1 kB / 278.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.007182, allocations: 119.2 kB / 278.5 MB, free: 12.15 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.0001035/0.007285, allocations: 271.8 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.007392, allocations: 53.62 kB / 278.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.007429, allocations: 8 kB / 278.8 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.007431, allocations: 0 / 278.8 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.007443, allocations: 4.172 kB / 278.8 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.007447, allocations: 0 / 278.8 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.51e-05/0.007522, allocations: 124.6 kB / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.007527, allocations: 7.984 kB / 278.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.296e-05/0.00762, allocations: 7.984 kB / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.007624, allocations: 0 / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.007632, allocations: 0 / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.007635, allocations: 4 kB / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.007637, allocations: 0 / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001157/0.007753, allocations: 92.27 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.246e-05/0.007785, allocations: 4 kB / 279 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.0078, allocations: 7.984 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.809e-05/0.007818, allocations: 3.938 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.296e-06/0.007821, allocations: 4 kB / 279.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.722e-06/0.007828, allocations: 0 / 279.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.142e-05/0.007879, allocations: 131.1 kB / 279.2 MB, free: 11.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007879, allocations: 0 / 279.2 MB, free: 11.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002078/0.008087, allocations: 8 kB / 279.2 MB, free: 11.36 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.0001041/0.008191, allocations: 99.23 kB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.032e-05/0.008252, allocations: 4 kB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.008253, allocations: 0 / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.71e-07/0.008254, allocations: 0 / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002267/0.00848, allocations: 25.05 kB / 279.3 MB, free: 11.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004956/0.008976, allocations: 137.1 kB / 279.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.738e-05/0.009013, allocations: 59.34 kB / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.04e-05/0.009024, allocations: 0 / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.942e-05/0.009053, allocations: 8.5 kB / 279.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.009054, allocations: 4 kB / 279.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of Templates: time 0.002303/0.01136, allocations: 345.5 kB / 279.9 MB, free: 10.64 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: 2.9744112088810652]