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.0007536/0.0007536, allocations: 84 kB / 21.43 MB, free: 3.129 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.002944/0.002944, allocations: 144.8 kB / 24.68 MB, free: 8.91 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.8157/0.8157, allocations: 173.4 MB / 201.2 MB, free: 9.43 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.092e-06/1.092e-06, allocations: 0 / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.53e-05/1.639e-05, allocations: 10.22 kB / 319.7 MB, free: 5.836 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001687/0.001704, allocations: 1.566 MB / 321.3 MB, free: 4.254 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004926/0.002196, allocations: 434.9 kB / 321.7 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.858e-05/0.002255, allocations: 0 / 321.7 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.643e-05/0.002281, allocations: 7.938 kB / 321.7 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.002416, allocations: 19.73 kB / 321.7 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.002574, allocations: 39.95 kB / 321.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.002676, allocations: 75.7 kB / 321.8 MB, free: 3.684 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.246e-05/0.002759, allocations: 11.97 kB / 321.8 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.408e-05/0.002853, allocations: 43.89 kB / 321.9 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.325e-05/0.002896, allocations: 27.92 kB / 321.9 MB, free: 3.602 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.002921, allocations: 4 kB / 321.9 MB, free: 3.598 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.207e-06/0.00293, allocations: 4 kB / 321.9 MB, free: 3.594 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.407e-05/0.002954, allocations: 23.91 kB / 321.9 MB, free: 3.57 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.892e-05/0.002983, allocations: 11.98 kB / 322 MB, free: 3.559 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.003086, allocations: 71.7 kB / 322 MB, free: 3.488 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.502e-06/0.003088, allocations: 0 / 322 MB, free: 3.488 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.003089, allocations: 0 / 322 MB, free: 3.488 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.487e-06/0.003092, allocations: 0 / 322 MB, free: 3.488 MB / 282.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.0003853/0.003478, allocations: 294.1 kB / 322.3 MB, free: 3.172 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.003508, allocations: 16.92 kB / 322.3 MB, free: 3.156 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.529e-05/0.003543, allocations: 16.81 kB / 322.3 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.003698, allocations: 133.6 kB / 322.5 MB, free: 2.984 MB / 282.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.271e-05/0.003781, allocations: 42.25 kB / 322.5 MB, free: 2.938 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.003792, allocations: 384 / 322.5 MB, free: 2.938 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002565/0.004048, allocations: 165.4 kB / 322.7 MB, free: 2.758 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.004057, allocations: 192 / 322.7 MB, free: 2.758 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.004069, allocations: 16.09 kB / 322.7 MB, free: 2.742 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.004073, allocations: 0 / 322.7 MB, free: 2.742 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.058e-05/0.004153, allocations: 31.98 kB / 322.7 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.004291, allocations: 122.2 kB / 322.8 MB, free: 2.559 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.004493, allocations: 81.27 kB / 322.9 MB, free: 2.461 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.827e-05/0.004551, allocations: 41.69 kB / 323 MB, free: 2.414 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.004568, allocations: 0 / 323 MB, free: 2.414 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.72e-05/0.004585, allocations: 38.5 kB / 323 MB, free: 2.367 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 7.21e-07/0.004586, allocations: 4 kB / 323 MB, free: 2.363 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002038/0.00479, allocations: 109.6 kB / 323.1 MB, free: 2.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.004843, allocations: 92.98 kB / 323.2 MB, free: 2.141 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.419e-05/0.004907, allocations: 124.8 kB / 323.3 MB, free: 2.012 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.004919, allocations: 33.64 kB / 323.4 MB, free: 1.973 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.777e-05/0.004947, allocations: 84.14 kB / 323.4 MB, free: 1.887 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.839e-05/0.004966, allocations: 11.95 kB / 323.5 MB, free: 1.875 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.579e-05/0.004991, allocations: 17.7 kB / 323.5 MB, free: 1.852 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.985e-05/0.005061, allocations: 314.8 kB / 323.8 MB, free: 1.535 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.663e-05/0.005088, allocations: 20.11 kB / 323.8 MB, free: 1.516 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.844e-05/0.005116, allocations: 30.56 kB / 323.8 MB, free: 1.477 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.357e-05/0.00517, allocations: 42.5 kB / 323.9 MB, free: 1.426 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.005172, allocations: 0 / 323.9 MB, free: 1.426 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.818e-05/0.00525, allocations: 73.58 kB / 323.9 MB, free: 1.348 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.00526, allocations: 12.03 kB / 324 MB, free: 1.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.005264, allocations: 0 / 324 MB, free: 1.336 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.005276, allocations: 4 kB / 324 MB, free: 1.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.363e-05/0.00532, allocations: 11.92 kB / 324 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.005328, allocations: 0 / 324 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/0.005347, allocations: 4.375 kB / 324 MB, free: 1.316 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.005353, allocations: 4 kB / 324 MB, free: 1.312 MB / 282.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 6.088e-05/0.005414, allocations: 121.8 kB / 324.1 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-05/0.005482, allocations: 77.58 kB / 324.2 MB, free: 1.102 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.592e-05/0.005508, allocations: 8.438 kB / 324.2 MB, free: 1.09 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.005511, allocations: 8 kB / 324.2 MB, free: 1.082 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.005515, allocations: 3.938 kB / 324.2 MB, free: 1.078 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.005517, allocations: 0 / 324.2 MB, free: 1.078 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.877e-05/0.005576, allocations: 113.3 kB / 324.3 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.005577, allocations: 0 / 324.3 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.331e-05/0.00561, allocations: 11.98 kB / 324.3 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.61e-07/0.005611, allocations: 4 kB / 324.3 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.005618, allocations: 0 / 324.3 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.005618, allocations: 0 / 324.3 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.00562, allocations: 3.984 kB / 324.3 MB, free: 0.918 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001234/0.005744, allocations: 137.8 kB / 324.5 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.593e-05/0.00577, allocations: 15.88 kB / 324.5 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.005785, allocations: 4 kB / 324.5 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.672e-05/0.005812, allocations: 4 kB / 324.5 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.375e-05/0.005836, allocations: 3.938 kB / 324.5 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.005843, allocations: 7.984 kB / 324.5 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.554e-05/0.005878, allocations: 99.27 kB / 324.6 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.005878, allocations: 0 / 324.6 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001243/0.006003, allocations: 11.94 kB / 324.6 MB, free: 0.6172 MB / 282.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 6.582e-05/0.006068, allocations: 107.2 kB / 324.7 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000103/0.006171, allocations: 43.91 kB / 324.7 MB, free: 472 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.006173, allocations: 4 kB / 324.8 MB, free: 468 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.646e-05/0.00619, allocations: 7.938 kB / 324.8 MB, free: 460 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.006598, allocations: 0.7141 MB / 325.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002488/0.006847, allocations: 195.4 kB / 325.7 MB, free: 15.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.257e-05/0.006889, allocations: 79.64 kB / 325.7 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.557e-05/0.006915, allocations: 16.5 kB / 325.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.006915, allocations: 0 / 325.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of Templates: time 0.0015/0.008416, allocations: 0.9429 MB / 326.7 MB, free: 14.44 MB / 298.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=480 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/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: 3.8314435724169016]