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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00165/0.00165, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00117/0.00117, allocations: 103.8 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009415/0.0009419, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2456, allocations: 50.44 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003213/0.2489, allocations: 1.648 MB / 408.7 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007369/0.2496, allocations: 0.4918 MB / 409.2 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.019e-05/0.2497, allocations: 0 / 409.2 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.333e-05/0.2498, allocations: 3.938 kB / 409.2 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.2499, allocations: 7.938 kB / 409.2 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001703/0.2501, allocations: 41.09 kB / 409.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.318e-05/0.2502, allocations: 55.84 kB / 409.3 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.651e-05/0.2503, allocations: 19.97 kB / 409.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.2504, allocations: 37.8 kB / 409.4 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.357e-05/0.2505, allocations: 35.83 kB / 409.4 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.2505, allocations: 4 kB / 409.4 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.831e-05/0.2505, allocations: 4 kB / 409.4 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.902e-05/0.2506, allocations: 11.98 kB / 409.4 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.353e-05/0.2506, allocations: 30.8 kB / 409.4 MB, free: 25.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.2507, allocations: 63.78 kB / 409.5 MB, free: 25.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.2507, allocations: 0 / 409.5 MB, free: 25.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.2507, allocations: 0 / 409.5 MB, free: 25.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.2507, allocations: 0 / 409.5 MB, free: 25.38 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.0004497/0.2512, allocations: 376.7 kB / 409.9 MB, free: 24.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2512, allocations: 16.59 kB / 409.9 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.2515, allocations: 20.83 kB / 409.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.2516, allocations: 192.2 kB / 410.1 MB, free: 24.7 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 0.0001418/0.2518, allocations: 34.27 kB / 410.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.2518, allocations: 4.375 kB / 410.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003089/0.2521, allocations: 172.9 kB / 410.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.2521, allocations: 3.938 kB / 410.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.2521, allocations: 4 kB / 410.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.2521, allocations: 0 / 410.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.2523, allocations: 35.97 kB / 410.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001256/0.2524, allocations: 174.5 kB / 410.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002194/0.2526, allocations: 170.4 kB / 410.7 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.675e-05/0.2527, allocations: 41.7 kB / 410.7 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.2527, allocations: 7.984 kB / 410.7 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.2528, allocations: 34.5 kB / 410.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.2528, allocations: 4 kB / 410.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002695/0.253, allocations: 117.5 kB / 410.9 MB, free: 23.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.2531, allocations: 89.05 kB / 411 MB, free: 23.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.372e-05/0.2532, allocations: 117.8 kB / 411.1 MB, free: 23.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.488e-06/0.2532, allocations: 25.7 kB / 411.1 MB, free: 23.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.111e-05/0.2532, allocations: 92.12 kB / 411.2 MB, free: 23.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.2532, allocations: 11.91 kB / 411.2 MB, free: 23.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.98e-05/0.2533, allocations: 21.84 kB / 411.2 MB, free: 23.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.384e-05/0.2533, allocations: 318.8 kB / 411.5 MB, free: 23.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.516e-05/0.2534, allocations: 19.98 kB / 411.6 MB, free: 23.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.625e-05/0.2534, allocations: 54 kB / 411.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.98e-05/0.2535, allocations: 85.88 kB / 411.7 MB, free: 22.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2535, allocations: 256 / 411.7 MB, free: 22.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001339/0.2537, allocations: 105.4 kB / 411.8 MB, free: 22.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.2537, allocations: 10.66 kB / 411.8 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2537, allocations: 4 kB / 411.8 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.2537, allocations: 4 kB / 411.8 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.088e-05/0.2538, allocations: 19.92 kB / 411.8 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.2538, allocations: 0 / 411.8 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.498e-05/0.2538, allocations: 12.14 kB / 411.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.2539, allocations: 8 kB / 411.9 MB, free: 22.7 MB / 298.7 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 5.709e-05/0.2539, allocations: 127.2 kB / 412 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.471e-05/0.254, allocations: 77.47 kB / 412.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.98e-05/0.2541, allocations: 16.55 kB / 412.1 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2541, allocations: 0 / 412.1 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2541, allocations: 3.938 kB / 412.1 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2541, allocations: 4 kB / 412.1 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.8e-05/0.2542, allocations: 169.6 kB / 412.2 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2542, allocations: 0 / 412.2 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.428e-05/0.2542, allocations: 19.92 kB / 412.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2542, allocations: 0 / 412.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.2543, allocations: 4 kB / 412.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2543, allocations: 0 / 412.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2543, allocations: 0 / 412.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003501/0.2546, allocations: 0.7144 MB / 413 MB, free: 21.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.015e-05/0.2547, allocations: 93 kB / 413.1 MB, free: 21.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.2547, allocations: 0 / 413.1 MB, free: 21.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.918e-05/0.2548, allocations: 8 kB / 413.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.587e-05/0.2548, allocations: 4 kB / 413.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.2548, allocations: 3.984 kB / 413.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.055e-05/0.2548, allocations: 96.27 kB / 413.2 MB, free: 21.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2549, allocations: 0 / 413.2 MB, free: 21.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002795/0.2551, allocations: 15.94 kB / 413.2 MB, free: 21.21 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 7.795e-05/0.2552, allocations: 107.3 kB / 413.3 MB, free: 21.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001442/0.2554, allocations: 59.91 kB / 413.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2554, allocations: 0 / 413.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.08e-05/0.2554, allocations: 4 kB / 413.4 MB, free: 21.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.2559, allocations: 0.7186 MB / 414.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003169/0.2562, allocations: 311.4 kB / 414.4 MB, free: 19.94 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001036/0.2563, allocations: 0.7005 MB / 415.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.714e-05/0.2563, allocations: 3.938 kB / 415.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.315e-05/0.2564, allocations: 11.44 kB / 415.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2564, allocations: 0 / 415.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of Templates: time 0.002259/0.2586, allocations: 0.7186 MB / 415.8 MB, free: 18.49 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches