Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 80.34 kB / 22.21 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009692/0.0009692, allocations: 162.2 kB / 25.61 MB, free: 8.59 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9315/0.9315, allocations: 177 MB / 205.9 MB, free: 4.453 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 274.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.496e-05/1.619e-05, allocations: 7.031 kB / 274.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002063/0.002079, allocations: 1.639 MB / 275.8 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006396/0.002719, allocations: 0.4917 MB / 276.3 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.487e-05/0.002784, allocations: 1.562 kB / 276.3 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.615e-05/0.00281, allocations: 3.938 kB / 276.3 MB, free: 2.148 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.00295, allocations: 23.8 kB / 276.3 MB, free: 2.125 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001813/0.003131, allocations: 44.78 kB / 276.3 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.59e-05/0.003227, allocations: 71.77 kB / 276.4 MB, free: 2.012 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.184e-05/0.003309, allocations: 15.8 kB / 276.4 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.003448, allocations: 52.56 kB / 276.5 MB, free: 1.945 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.221e-05/0.00349, allocations: 21.55 kB / 276.5 MB, free: 1.926 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.003507, allocations: 4 kB / 276.5 MB, free: 1.922 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.465e-05/0.003542, allocations: 8 kB / 276.5 MB, free: 1.914 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.999e-05/0.003562, allocations: 23.91 kB / 276.5 MB, free: 1.891 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.362e-05/0.003585, allocations: 16.64 kB / 276.5 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001025/0.003688, allocations: 55.8 kB / 276.6 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.00369, allocations: 4 kB / 276.6 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.00369, allocations: 0 / 276.6 MB, free: 1.816 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.297e-06/0.003694, allocations: 3.938 kB / 276.6 MB, free: 1.812 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.0003349/0.004028, allocations: 408.3 kB / 277 MB, free: 1.379 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.00406, allocations: 12.03 kB / 277 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.004191, allocations: 20.88 kB / 277 MB, free: 1.348 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.004322, allocations: 128.6 kB / 277.2 MB, free: 1.195 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 6.394e-05/0.004386, allocations: 46.23 kB / 277.2 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.456e-06/0.004394, allocations: 384 / 277.2 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.004584, allocations: 173.4 kB / 277.4 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.811e-06/0.004589, allocations: 192 / 277.4 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.004598, allocations: 4.125 kB / 277.4 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.004602, allocations: 0 / 277.4 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.336e-05/0.004635, allocations: 15.98 kB / 277.4 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.044e-05/0.004726, allocations: 120.8 kB / 277.5 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001363/0.004862, allocations: 82.23 kB / 277.6 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.208e-05/0.004894, allocations: 43.34 kB / 277.6 MB, free: 0.625 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.004905, allocations: 0 / 277.6 MB, free: 0.625 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.004921, allocations: 37.33 kB / 277.7 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 7.02e-07/0.004922, allocations: 4 kB / 277.7 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001373/0.005059, allocations: 77.61 kB / 277.7 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.005108, allocations: 96.98 kB / 277.8 MB, free: 388 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.754e-05/0.005176, allocations: 180.4 kB / 278 MB, free: 192 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.005191, allocations: 25.7 kB / 278 MB, free: 160 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.795e-05/0.005229, allocations: 138.8 kB / 278.2 MB, free: 16 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.738e-05/0.005246, allocations: 16.08 kB / 278.2 MB, free: 0 / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.534e-05/0.005281, allocations: 23.41 kB / 278.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.367e-05/0.005375, allocations: 496.1 kB / 278.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.939e-06/0.005385, allocations: 4 kB / 278.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.148e-05/0.005407, allocations: 39.28 kB / 278.7 MB, free: 15.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.566e-05/0.005442, allocations: 39 kB / 278.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.005444, allocations: 0 / 278.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.257e-05/0.005506, allocations: 65.64 kB / 278.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/0.005516, allocations: 4 kB / 278.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.005519, allocations: 0 / 278.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.005529, allocations: 4 kB / 278.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.777e-05/0.005567, allocations: 4 kB / 278.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.557e-06/0.005571, allocations: 3.938 kB / 278.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.966e-05/0.00559, allocations: 7.984 kB / 278.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-06/0.005594, allocations: 0 / 278.9 MB, free: 15.27 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 0.000325/0.005919, allocations: 168.5 kB / 279 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.085e-05/0.00598, allocations: 65.64 kB / 279.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.742e-05/0.006007, allocations: 12.45 kB / 279.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.006009, allocations: 4 kB / 279.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-06/0.00601, allocations: 0 / 279.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.006014, allocations: 3.938 kB / 279.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.156e-05/0.006075, allocations: 109.2 kB / 279.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.006076, allocations: 0 / 279.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.283e-05/0.006109, allocations: 8 kB / 279.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.006111, allocations: 3.984 kB / 279.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.006118, allocations: 7.938 kB / 279.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.006122, allocations: 0 / 279.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.006123, allocations: 0 / 279.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.79e-05/0.006181, allocations: 99.95 kB / 279.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.214e-05/0.006203, allocations: 11.94 kB / 279.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.006218, allocations: 4 kB / 279.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.81e-05/0.006246, allocations: 8.172 kB / 279.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.006265, allocations: 0 / 279.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.006272, allocations: 8 kB / 279.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.871e-05/0.006311, allocations: 139.2 kB / 279.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006311, allocations: 0 / 279.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001195/0.00643, allocations: 8 kB / 279.5 MB, free: 14.55 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.914e-05/0.006499, allocations: 111.2 kB / 279.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.483e-05/0.006574, allocations: 31.61 kB / 279.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.02e-07/0.006575, allocations: 0 / 279.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.169e-05/0.006587, allocations: 11.69 kB / 279.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004516/0.007038, allocations: 1.061 MB / 280.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003772/0.007416, allocations: 191.7 kB / 280.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.192e-05/0.007448, allocations: 71.2 kB / 281 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.469e-05/0.007462, allocations: 0 / 281 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.732e-05/0.00751, allocations: 82.19 kB / 281.1 MB, free: 12.9 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.00751, allocations: 0 / 281.1 MB, free: 12.9 MB / 266.7 MB Notification: Performance of Templates: time 0.002242/0.009752, allocations: 0.8582 MB / 281.9 MB, free: 12.07 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8869895730167627]