Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.001342/0.001342, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.007658/0.007658, allocations: 161.2 kB / 24.7 MB, free: 9.426 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 0.899/0.899, allocations: 177.2 MB / 205 MB, free: 5.715 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.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.32e-07/8.32e-07, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.381e-05/1.464e-05, allocations: 4.672 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001586/0.0016, allocations: 1.606 MB / 327.4 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005134/0.002114, allocations: 0.4908 MB / 327.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.777e-05/0.002151, allocations: 3.938 kB / 327.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.435e-05/0.002166, allocations: 3.938 kB / 327.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.836e-05/0.002244, allocations: 15.86 kB / 328 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001469/0.002391, allocations: 51.81 kB / 328 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.139e-05/0.002462, allocations: 71.78 kB / 328.1 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.702e-05/0.002509, allocations: 11.97 kB / 328.1 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.002612, allocations: 47.84 kB / 328.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.67e-05/0.002649, allocations: 31.89 kB / 328.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.00266, allocations: 4 kB / 328.2 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.792e-05/0.002688, allocations: 8 kB / 328.2 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.37e-05/0.002702, allocations: 19.92 kB / 328.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.99e-05/0.002722, allocations: 11.98 kB / 328.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.43e-05/0.002816, allocations: 75.7 kB / 328.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.313e-06/0.002817, allocations: 0 / 328.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.002818, allocations: 0 / 328.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.485e-06/0.002821, allocations: 0 / 328.3 MB, free: 12.96 MB / 298.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.000267/0.003088, allocations: 308.9 kB / 328.6 MB, free: 12.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.197e-05/0.00311, allocations: 16.03 kB / 328.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.003222, allocations: 20.88 kB / 328.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.00334, allocations: 133.6 kB / 328.8 MB, free: 12.44 MB / 298.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 6.809e-05/0.003409, allocations: 34.27 kB / 328.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.003418, allocations: 8.375 kB / 328.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002021/0.00362, allocations: 161.4 kB / 329 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.368e-06/0.003624, allocations: 4.188 kB / 329 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.196e-06/0.003632, allocations: 8.125 kB / 329 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-06/0.003635, allocations: 0 / 329 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.812e-05/0.003703, allocations: 39.91 kB / 329 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.96e-05/0.003792, allocations: 122.1 kB / 329.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/0.003946, allocations: 89.25 kB / 329.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.941e-05/0.003996, allocations: 41.7 kB / 329.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.004006, allocations: 0 / 329.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.429e-05/0.00402, allocations: 38.55 kB / 329.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 6.31e-07/0.004021, allocations: 4 kB / 329.3 MB, free: 11.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001616/0.004183, allocations: 109.5 kB / 329.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.004222, allocations: 89.05 kB / 329.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.414e-05/0.004276, allocations: 128.4 kB / 329.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.004287, allocations: 29.7 kB / 329.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.437e-05/0.004311, allocations: 88.14 kB / 329.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.004326, allocations: 3.953 kB / 329.7 MB, free: 11.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.553e-05/0.004351, allocations: 21.7 kB / 329.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.343e-05/0.004415, allocations: 319 kB / 330.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.086e-05/0.004436, allocations: 11.98 kB / 330.1 MB, free: 10.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.75e-05/0.004463, allocations: 38.5 kB / 330.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.926e-05/0.004512, allocations: 46.5 kB / 330.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.004513, allocations: 0 / 330.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.961e-05/0.004583, allocations: 70.05 kB / 330.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.068e-06/0.004592, allocations: 12 kB / 330.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-06/0.004594, allocations: 0 / 330.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.601e-06/0.0046, allocations: 0 / 330.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.354e-05/0.004633, allocations: 23.86 kB / 330.3 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/0.004636, allocations: 0 / 330.3 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.737e-05/0.004653, allocations: 4 kB / 330.3 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-06/0.004658, allocations: 3.984 kB / 330.3 MB, free: 10.75 MB / 298.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 5.062e-05/0.004709, allocations: 117.8 kB / 330.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-05/0.004775, allocations: 73.64 kB / 330.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.019e-05/0.004795, allocations: 12.44 kB / 330.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.004796, allocations: 0 / 330.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.004801, allocations: 7.938 kB / 330.5 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.004803, allocations: 0 / 330.5 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.202e-05/0.004865, allocations: 121.2 kB / 330.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-07/0.004865, allocations: 0 / 330.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.17e-05/0.004897, allocations: 15.92 kB / 330.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.004899, allocations: 4 kB / 330.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-06/0.004904, allocations: 0 / 330.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-07/0.004905, allocations: 0 / 330.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.004906, allocations: 0 / 330.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.005015, allocations: 129.8 kB / 330.7 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002954/0.00531, allocations: 15.94 kB / 330.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.005323, allocations: 4 kB / 330.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.616e-05/0.005349, allocations: 4 kB / 330.8 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.149e-05/0.00537, allocations: 3.938 kB / 330.8 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-06/0.005377, allocations: 7.984 kB / 330.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.385e-05/0.005411, allocations: 99.27 kB / 330.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005411, allocations: 0 / 330.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001181/0.005529, allocations: 11.94 kB / 330.9 MB, free: 10.07 MB / 298.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 5.419e-05/0.005583, allocations: 111.1 kB / 331 MB, free: 9.949 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.332e-05/0.005666, allocations: 43.95 kB / 331 MB, free: 9.906 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.005668, allocations: 4 kB / 331 MB, free: 9.902 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.559e-05/0.005683, allocations: 7.938 kB / 331 MB, free: 9.895 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.006033, allocations: 0.7221 MB / 331.8 MB, free: 9.148 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002086/0.006242, allocations: 191.9 kB / 332 MB, free: 8.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.764e-05/0.00628, allocations: 91.39 kB / 332 MB, free: 8.816 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.86e-05/0.006298, allocations: 8.5 kB / 332.1 MB, free: 8.809 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.006299, allocations: 0 / 332.1 MB, free: 8.809 MB / 298.7 MB Notification: Performance of Templates: time 0.001261/0.007559, allocations: 0.9714 MB / 333 MB, free: 7.836 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1100915325805545]