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.0009692/0.0009692, allocations: 84.8 kB / 21.5 MB, free: 2.992 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.001041/0.001041, allocations: 171.7 kB / 24.92 MB, free: 8.727 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.9712/0.9712, allocations: 177.1 MB / 205.3 MB, free: 5.059 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 1.172e-06/1.172e-06, allocations: 0 / 273.5 MB, free: 1.105 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.869e-05/1.987e-05, allocations: 2.312 kB / 273.5 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002005/0.002025, allocations: 1.689 MB / 275.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006403/0.002666, allocations: 0.518 MB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.928e-05/0.002725, allocations: 4 kB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.261e-05/0.002748, allocations: 3.938 kB / 275.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001321/0.00288, allocations: 11.81 kB / 275.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001669/0.003046, allocations: 55.8 kB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.222e-05/0.003139, allocations: 67.78 kB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.878e-05/0.003207, allocations: 11.97 kB / 275.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.003364, allocations: 51.84 kB / 275.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.46e-05/0.003419, allocations: 27.89 kB / 275.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.003437, allocations: 8 kB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.197e-05/0.003489, allocations: 8 kB / 276 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.16e-05/0.00351, allocations: 11.98 kB / 276 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.707e-05/0.003537, allocations: 19.92 kB / 276 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.003646, allocations: 55.73 kB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.00365, allocations: 4 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.003651, allocations: 0 / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.003655, allocations: 0 / 276 MB, free: 14.54 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003112/0.003966, allocations: 280.7 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.003999, allocations: 8.031 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.004127, allocations: 24.86 kB / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.004269, allocations: 129.7 kB / 276.5 MB, free: 14.06 MB / 266.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 7.019e-05/0.00434, allocations: 38.25 kB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.004351, allocations: 4.375 kB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.004541, allocations: 162 kB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.004547, allocations: 4.188 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.196e-06/0.004556, allocations: 4.125 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.00456, allocations: 0 / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.114e-05/0.004591, allocations: 11.98 kB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.094e-05/0.004662, allocations: 77.83 kB / 276.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.004783, allocations: 69.11 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.502e-05/0.004808, allocations: 25.7 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.004819, allocations: 4 kB / 276.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.004836, allocations: 30.56 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 8.31e-07/0.004837, allocations: 4 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001162/0.004954, allocations: 81.59 kB / 277 MB, free: 13.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.004998, allocations: 85.11 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.615e-05/0.005054, allocations: 129.8 kB / 277.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.005066, allocations: 29.69 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.072e-05/0.005087, allocations: 84.14 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.005106, allocations: 11.88 kB / 277.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.422e-05/0.00513, allocations: 17.72 kB / 277.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003279/0.005458, allocations: 322.8 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.182e-05/0.005469, allocations: 4.125 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.668e-05/0.005486, allocations: 26.56 kB / 277.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.021e-05/0.005516, allocations: 22.58 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.005518, allocations: 0 / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 5.116e-05/0.005569, allocations: 57.56 kB / 277.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.005579, allocations: 7.984 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.005584, allocations: 4 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.005593, allocations: 4.094 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.775e-05/0.005631, allocations: 4 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.005635, allocations: 4 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.799e-05/0.005653, allocations: 7.875 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.411e-06/0.005659, allocations: 4 kB / 277.8 MB, free: 12.59 MB / 266.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.561e-05/0.005714, allocations: 117.8 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.428e-05/0.005759, allocations: 53.62 kB / 278 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.634e-05/0.005785, allocations: 12.42 kB / 278 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.005787, allocations: 4 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.00579, allocations: 3.984 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.005794, allocations: 7.938 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.293e-05/0.005847, allocations: 73.88 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.005848, allocations: 0 / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.192e-05/0.00588, allocations: 15.98 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.005881, allocations: 0 / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.005887, allocations: 4 kB / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.005888, allocations: 448 / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.005888, allocations: 0 / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.605e-05/0.005934, allocations: 73.86 kB / 278.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.157e-05/0.005956, allocations: 11.94 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.005972, allocations: 8.031 kB / 278.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.549e-05/0.005998, allocations: 8 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.399e-05/0.006022, allocations: 0 / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-06/0.006027, allocations: 3.984 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.77e-05/0.006045, allocations: 32.77 kB / 278.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.006045, allocations: 0 / 278.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of remove unused functions: time 9.514e-05/0.00614, allocations: 8 kB / 278.2 MB, free: 12.09 MB / 266.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.248e-05/0.006203, allocations: 80.42 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.477e-05/0.006267, allocations: 32.72 kB / 278.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.006271, allocations: 8.188 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.396e-06/0.006279, allocations: 4.859 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.006603, allocations: 0.7077 MB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000325/0.006928, allocations: 190.7 kB / 279.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.025e-05/0.006958, allocations: 63.34 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.507e-05/0.006973, allocations: 4.125 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.967e-05/0.007013, allocations: 59.36 kB / 279.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.007013, allocations: 0 / 279.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of Templates: time 0.00198/0.008994, allocations: 0.823 MB / 280.2 MB, free: 10.05 MB / 266.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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] 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","",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.5493559171445668]