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.001452/0.001452, allocations: 72.06 kB / 21.24 MB, free: 0.5391 MB / 14.72 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.001489/0.001489, allocations: 155.7 kB / 24.49 MB, free: 3.711 MB / 14.72 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.492/1.492, allocations: 173.4 MB / 201.1 MB, free: 12.98 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001529/0.001529, allocations: 46.17 kB / 319.4 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0906/0.09212, allocations: 52.16 MB / 371.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003056/0.09518, allocations: 1.588 MB / 373.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007752/0.09596, allocations: 423 kB / 373.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.625e-05/0.09603, allocations: 3.938 kB / 373.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.011e-05/0.09606, allocations: 3.938 kB / 373.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.09622, allocations: 15.88 kB / 373.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.09642, allocations: 35.89 kB / 373.6 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001257/0.09655, allocations: 75.81 kB / 373.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.907e-05/0.09664, allocations: 8 kB / 373.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.09674, allocations: 31.86 kB / 373.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.129e-05/0.09682, allocations: 35.83 kB / 373.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.132e-05/0.09684, allocations: 4 kB / 373.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.545e-05/0.09685, allocations: 7.938 kB / 373.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.78e-05/0.09688, allocations: 11.98 kB / 373.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.845e-05/0.09694, allocations: 23.86 kB / 373.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.09707, allocations: 59.73 kB / 373.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.09707, allocations: 0 / 373.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.09707, allocations: 7.938 kB / 373.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.09708, allocations: 0 / 373.9 MB, free: 5.055 MB / 334.1 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.0005301/0.09761, allocations: 306 kB / 374.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.09764, allocations: 12.92 kB / 374.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.09769, allocations: 8.891 kB / 374.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002242/0.09791, allocations: 138.3 kB / 374.3 MB, free: 4.547 MB / 334.1 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 0.0001029/0.09801, allocations: 42.25 kB / 374.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.509e-05/0.09803, allocations: 8.312 kB / 374.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003898/0.09842, allocations: 165.1 kB / 374.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.09843, allocations: 0 / 374.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.09844, allocations: 0 / 374.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.09844, allocations: 0 / 374.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.09858, allocations: 39.91 kB / 374.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.09874, allocations: 122.2 kB / 374.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002602/0.099, allocations: 81.33 kB / 374.8 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.09911, allocations: 45.64 kB / 374.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.09913, allocations: 3.984 kB / 374.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.09916, allocations: 34.5 kB / 374.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.09916, allocations: 4 kB / 374.9 MB, free: 3.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003336/0.0995, allocations: 113.5 kB / 375 MB, free: 3.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.855e-05/0.09957, allocations: 85.11 kB / 375.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.09968, allocations: 129.6 kB / 375.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.0997, allocations: 29.7 kB / 375.2 MB, free: 3.535 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.279e-05/0.09975, allocations: 88.14 kB / 375.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.138e-05/0.09977, allocations: 16.02 kB / 375.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.033e-05/0.09981, allocations: 21.7 kB / 375.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.09995, allocations: 318.8 kB / 375.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.31e-05/0.1, allocations: 16.23 kB / 375.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.943e-05/0.1001, allocations: 65.92 kB / 375.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.1002, allocations: 81.94 kB / 375.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1002, allocations: 0 / 375.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001943/0.1004, allocations: 105.4 kB / 375.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.1004, allocations: 11.94 kB / 375.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.1004, allocations: 0 / 375.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.1005, allocations: 4.219 kB / 375.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-05/0.1005, allocations: 19.98 kB / 376 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1006, allocations: 0 / 376 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.248e-05/0.1006, allocations: 4 kB / 376 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.1006, allocations: 4 kB / 376 MB, free: 2.727 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (9): * Single equations (assignments): 9 * 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.0001074/0.1007, allocations: 125.7 kB / 376.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.1009, allocations: 77.56 kB / 376.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.719e-05/0.1009, allocations: 16.42 kB / 376.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1009, allocations: 0 / 376.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.1009, allocations: 4 kB / 376.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1009, allocations: 0 / 376.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.101, allocations: 117.3 kB / 376.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.101, allocations: 0 / 376.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.988e-05/0.1011, allocations: 11.98 kB / 376.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1011, allocations: 0 / 376.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.1011, allocations: 16.11 kB / 376.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1011, allocations: 0 / 376.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1011, allocations: 7.875 kB / 376.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002283/0.1013, allocations: 110 kB / 376.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.97e-05/0.1014, allocations: 19.94 kB / 376.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.1014, allocations: 7.938 kB / 376.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.379e-05/0.1015, allocations: 15.92 kB / 376.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.237e-05/0.1015, allocations: 0 / 376.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.1015, allocations: 4.125 kB / 376.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.83e-05/0.1016, allocations: 95.27 kB / 376.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1016, allocations: 0 / 376.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002129/0.1018, allocations: 12 kB / 376.6 MB, free: 2.027 MB / 334.1 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 9.614e-05/0.1019, allocations: 99.25 kB / 376.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001989/0.1021, allocations: 64.09 kB / 376.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1021, allocations: 0 / 376.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.94e-05/0.1021, allocations: 7.984 kB / 376.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007051/0.1028, allocations: 0.7215 MB / 377.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003805/0.1032, allocations: 187.4 kB / 377.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.332e-05/0.1033, allocations: 75.64 kB / 377.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.788e-05/0.1033, allocations: 7.984 kB / 377.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.467e-05/0.1034, allocations: 16.5 kB / 377.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1034, allocations: 0 / 377.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of Templates: time 0.003274/0.1066, allocations: 0.7977 MB / 378.6 MB, free: 15.99 MB / 350.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.162638472043909]