Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001451/0.001451, allocations: 197 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 226.6 MB / 244.4 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007361/0.0007362, allocations: 98.5 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003129/0.0003133, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2256, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001381/0.2271, allocations: 1.288 MB / 408.8 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005712/0.2277, allocations: 470 kB / 409.2 MB, free: 26.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.491e-05/0.2277, allocations: 7.938 kB / 409.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.517e-05/0.2278, allocations: 3.938 kB / 409.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.2279, allocations: 3.938 kB / 409.3 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.2281, allocations: 48.47 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.084e-05/0.2282, allocations: 57.16 kB / 409.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.623e-05/0.2283, allocations: 12 kB / 409.4 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.2284, allocations: 37.61 kB / 409.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.346e-05/0.2285, allocations: 23.92 kB / 409.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.2285, allocations: 0 / 409.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.806e-05/0.2286, allocations: 4 kB / 409.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.524e-05/0.2286, allocations: 17.11 kB / 409.5 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.602e-05/0.2286, allocations: 37.64 kB / 409.5 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.309e-05/0.2287, allocations: 47.84 kB / 409.5 MB, free: 25.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2287, allocations: 1.594 kB / 409.5 MB, free: 25.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2287, allocations: 0 / 409.5 MB, free: 25.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.2287, allocations: 0 / 409.5 MB, free: 25.78 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.0004125/0.2292, allocations: 364.8 kB / 409.9 MB, free: 25.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.2292, allocations: 8.875 kB / 409.9 MB, free: 25.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.2294, allocations: 24.52 kB / 409.9 MB, free: 25.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.2295, allocations: 179.5 kB / 410.1 MB, free: 25.13 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.0001144/0.2297, allocations: 41.06 kB / 410.1 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.2297, allocations: 11.95 kB / 410.2 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.23, allocations: 168.8 kB / 410.3 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.23, allocations: 5.188 kB / 410.3 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.23, allocations: 4 kB / 410.3 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.23, allocations: 4 kB / 410.3 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.2302, allocations: 36.12 kB / 410.4 MB, free: 24.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001255/0.2303, allocations: 178.5 kB / 410.5 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.2306, allocations: 170.4 kB / 410.7 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.423e-05/0.2306, allocations: 45.7 kB / 410.8 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.2307, allocations: 0 / 410.8 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.2307, allocations: 42.45 kB / 410.8 MB, free: 24.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.2307, allocations: 0 / 410.8 MB, free: 24.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.00029/0.231, allocations: 117.6 kB / 410.9 MB, free: 24.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.231, allocations: 89.05 kB / 411 MB, free: 24.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.028e-05/0.2311, allocations: 125.3 kB / 411.1 MB, free: 23.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.2311, allocations: 29.7 kB / 411.1 MB, free: 23.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.405e-05/0.2312, allocations: 84.14 kB / 411.2 MB, free: 23.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.2312, allocations: 15.89 kB / 411.2 MB, free: 23.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.466e-06/0.2312, allocations: 0 / 411.2 MB, free: 23.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.059e-05/0.2313, allocations: 323 kB / 411.6 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.989e-05/0.2313, allocations: 19.98 kB / 411.6 MB, free: 23.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.502e-05/0.2314, allocations: 57.94 kB / 411.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.563e-05/0.2314, allocations: 35.92 kB / 411.7 MB, free: 23.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2314, allocations: 0 / 411.7 MB, free: 23.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001467/0.2316, allocations: 105.5 kB / 411.8 MB, free: 23.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2316, allocations: 7.953 kB / 411.8 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2316, allocations: 4 kB / 411.8 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.2316, allocations: 3.984 kB / 411.8 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.717e-05/0.2317, allocations: 23.92 kB / 411.8 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.2317, allocations: 0 / 411.8 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.74e-05/0.2318, allocations: 4 kB / 411.8 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.2318, allocations: 4 kB / 411.8 MB, free: 23.21 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 (sine.startOutput,$CLKPRE.sine.startOutput,sine.counter,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.427e-05/0.2319, allocations: 137.8 kB / 412 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.763e-05/0.232, allocations: 69.53 kB / 412 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.16e-05/0.232, allocations: 16.33 kB / 412 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.232, allocations: 0 / 412 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.232, allocations: 4 kB / 412 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.232, allocations: 320 / 412 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.783e-05/0.2321, allocations: 173.6 kB / 412.2 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2321, allocations: 4 kB / 412.2 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.887e-05/0.2322, allocations: 12 kB / 412.2 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.2322, allocations: 0 / 412.2 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.2322, allocations: 7.984 kB / 412.2 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.2322, allocations: 3.953 kB / 412.2 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2322, allocations: 4 kB / 412.2 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001764/0.2324, allocations: 125.8 kB / 412.4 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.545e-05/0.2325, allocations: 85.02 kB / 412.5 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.2325, allocations: 15.98 kB / 412.5 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.617e-05/0.2326, allocations: 4 kB / 412.5 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.87e-05/0.2326, allocations: 3.953 kB / 412.5 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.2326, allocations: 4 kB / 412.5 MB, free: 22.45 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.3e-05/0.2327, allocations: 95.27 kB / 412.6 MB, free: 22.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2327, allocations: 0 / 412.6 MB, free: 22.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001801/0.2329, allocations: 12 kB / 412.6 MB, free: 22.34 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.622e-05/0.2329, allocations: 107.2 kB / 412.7 MB, free: 22.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001592/0.2331, allocations: 60.08 kB / 412.7 MB, free: 22.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2331, allocations: 0 / 412.7 MB, free: 22.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.535e-05/0.2332, allocations: 19.88 kB / 412.8 MB, free: 22.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.2336, allocations: 0.7174 MB / 413.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002964/0.2339, allocations: 223 kB / 413.7 MB, free: 21.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.2341, allocations: 0.7005 MB / 414.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.864e-05/0.2341, allocations: 7.438 kB / 414.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2341, allocations: 0 / 414.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of Templates: time 0.001928/0.236, allocations: 0.9421 MB / 415.4 MB, free: 19.49 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches