Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.001062/0.001062, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.00126/0.00126, allocations: 145.2 kB / 25.59 MB, free: 8.918 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 1.093/1.093, allocations: 173.4 MB / 202.3 MB, free: 8.273 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.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.927e-05/3.071e-05, allocations: 6.422 kB / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002972/0.003003, allocations: 1.622 MB / 270.8 MB, free: 8.156 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000764/0.003767, allocations: 436.2 kB / 271.3 MB, free: 7.727 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.628e-05/0.003853, allocations: 2.406 kB / 271.3 MB, free: 7.727 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.67e-05/0.00389, allocations: 3.938 kB / 271.3 MB, free: 7.723 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.004062, allocations: 15.81 kB / 271.3 MB, free: 7.707 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002104/0.004272, allocations: 43.88 kB / 271.3 MB, free: 7.664 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000123/0.004395, allocations: 67.77 kB / 271.4 MB, free: 7.598 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001368/0.004532, allocations: 8.844 kB / 271.4 MB, free: 7.59 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002179/0.00475, allocations: 39.91 kB / 271.4 MB, free: 7.551 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.223e-05/0.004822, allocations: 33.52 kB / 271.5 MB, free: 7.52 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.457e-05/0.004846, allocations: 4 kB / 271.5 MB, free: 7.516 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.42e-05/0.004861, allocations: 4 kB / 271.5 MB, free: 7.512 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.027e-05/0.004891, allocations: 15.92 kB / 271.5 MB, free: 7.496 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.898e-05/0.00493, allocations: 16.69 kB / 271.5 MB, free: 7.48 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.005081, allocations: 51.75 kB / 271.6 MB, free: 7.43 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.005084, allocations: 0.5312 kB / 271.6 MB, free: 7.43 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.005086, allocations: 4.719 kB / 271.6 MB, free: 7.426 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.005091, allocations: 0 / 271.6 MB, free: 7.426 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005235/0.005614, allocations: 397 kB / 272 MB, free: 7.004 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.005658, allocations: 12.03 kB / 272 MB, free: 6.992 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.675e-05/0.005715, allocations: 18.41 kB / 272 MB, free: 6.977 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.005908, allocations: 136.5 kB / 272.1 MB, free: 6.816 MB / 250.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.889e-05/0.005997, allocations: 38.25 kB / 272.2 MB, free: 6.773 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.00601, allocations: 6.156 kB / 272.2 MB, free: 6.77 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.006262, allocations: 161.4 kB / 272.3 MB, free: 6.586 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.006269, allocations: 1.062 kB / 272.3 MB, free: 6.586 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.00628, allocations: 8.109 kB / 272.3 MB, free: 6.578 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.006284, allocations: 2.031 kB / 272.3 MB, free: 6.578 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.669e-05/0.006321, allocations: 19.97 kB / 272.3 MB, free: 6.559 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/0.006428, allocations: 109 kB / 272.5 MB, free: 6.422 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.006582, allocations: 90.2 kB / 272.5 MB, free: 6.309 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.365e-05/0.006615, allocations: 32.64 kB / 272.6 MB, free: 6.27 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.006632, allocations: 4 kB / 272.6 MB, free: 6.266 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.006658, allocations: 37.33 kB / 272.6 MB, free: 6.219 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.00666, allocations: 0.5 kB / 272.6 MB, free: 6.219 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002168/0.006877, allocations: 89.56 kB / 272.7 MB, free: 6.125 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.488e-05/0.006941, allocations: 85.11 kB / 272.8 MB, free: 6.023 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.515e-05/0.007037, allocations: 177.8 kB / 273 MB, free: 5.832 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.007052, allocations: 25.7 kB / 273 MB, free: 5.801 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.133e-05/0.007103, allocations: 138.9 kB / 273.1 MB, free: 5.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.007126, allocations: 3.953 kB / 273.1 MB, free: 5.656 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.007168, allocations: 31.34 kB / 273.2 MB, free: 5.617 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.007323, allocations: 0.4922 MB / 273.6 MB, free: 5.113 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.368e-05/0.007337, allocations: 3.984 kB / 273.7 MB, free: 5.109 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.159e-05/0.007368, allocations: 35.05 kB / 273.7 MB, free: 5.062 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.563e-05/0.007424, allocations: 43.12 kB / 273.7 MB, free: 5.008 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.007427, allocations: 0 / 273.7 MB, free: 5.008 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.916e-05/0.007526, allocations: 57.58 kB / 273.8 MB, free: 4.945 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.007543, allocations: 8 kB / 273.8 MB, free: 4.938 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.007548, allocations: 0 / 273.8 MB, free: 4.938 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.007559, allocations: 0 / 273.8 MB, free: 4.938 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.812e-05/0.007628, allocations: 11.98 kB / 273.8 MB, free: 4.926 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.007633, allocations: 3.938 kB / 273.8 MB, free: 4.922 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.024e-05/0.007663, allocations: 4.094 kB / 273.8 MB, free: 4.918 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.413e-06/0.00767, allocations: 4.375 kB / 273.8 MB, free: 4.914 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.sine.startOutput,sine.startOutput,$CLKPRE.sine.counter,sine.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.418e-05/0.007755, allocations: 164.5 kB / 274 MB, free: 4.742 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.241e-05/0.007827, allocations: 61.64 kB / 274 MB, free: 4.676 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.758e-05/0.007865, allocations: 16.42 kB / 274.1 MB, free: 4.656 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.007867, allocations: 0 / 274.1 MB, free: 4.656 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.007869, allocations: 0 / 274.1 MB, free: 4.656 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.007873, allocations: 7.938 kB / 274.1 MB, free: 4.648 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.29e-05/0.007946, allocations: 105.2 kB / 274.2 MB, free: 4.52 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.007948, allocations: 4 kB / 274.2 MB, free: 4.516 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.038e-05/0.007998, allocations: 15.98 kB / 274.2 MB, free: 4.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.008001, allocations: 0 / 274.2 MB, free: 4.5 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.008008, allocations: 3.938 kB / 274.2 MB, free: 4.496 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.00801, allocations: 0 / 274.2 MB, free: 4.496 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.008012, allocations: 4 kB / 274.2 MB, free: 4.492 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.61e-05/0.008098, allocations: 88.02 kB / 274.3 MB, free: 4.379 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.831e-05/0.008137, allocations: 15.88 kB / 274.3 MB, free: 4.363 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.00816, allocations: 8 kB / 274.3 MB, free: 4.355 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.16e-05/0.008211, allocations: 0 / 274.3 MB, free: 4.355 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.565e-05/0.008237, allocations: 4 kB / 274.3 MB, free: 4.352 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.008248, allocations: 8.016 kB / 274.3 MB, free: 4.344 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.119e-05/0.008309, allocations: 142.7 kB / 274.5 MB, free: 4.207 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008309, allocations: 0 / 274.5 MB, free: 4.207 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002297/0.008539, allocations: 8 kB / 274.5 MB, free: 4.199 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0001202/0.008659, allocations: 111.1 kB / 274.6 MB, free: 4.082 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001099/0.008769, allocations: 31.66 kB / 274.6 MB, free: 4.047 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.008772, allocations: 4 kB / 274.6 MB, free: 4.043 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.69e-05/0.008789, allocations: 11.62 kB / 274.6 MB, free: 4.027 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006191/0.009408, allocations: 1.064 MB / 275.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004077/0.009816, allocations: 179.3 kB / 275.9 MB, free: 2.73 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.26e-05/0.009848, allocations: 63.34 kB / 275.9 MB, free: 2.648 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.001e-05/0.009868, allocations: 3.906 kB / 275.9 MB, free: 2.645 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.016e-05/0.009919, allocations: 82.19 kB / 276 MB, free: 2.562 MB / 250.7 MB Notification: Performance of SimCode: time 6.71e-07/0.009919, allocations: 0 / 276 MB, free: 2.562 MB / 250.7 MB Notification: Performance of Templates: time 0.002338/0.01226, allocations: 0.8586 MB / 276.9 MB, free: 1.723 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.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.8700907439924777]