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.001088/0.001088, allocations: 200.8 kB / 18.11 MB, free: 3.609 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 226.5 MB / 245.4 MB, free: 8.066 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008325/0.0008325, allocations: 97.84 kB / 297.5 MB, free: 6.855 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002882/0.0002886, allocations: 7.984 kB / 358.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3026, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1174/0.4201, allocations: 77.93 MB / 487.3 MB, free: 13.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.4204, allocations: 79.94 kB / 487.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004959/0.4254, allocations: 1.522 MB / 488.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4254, allocations: 0 / 488.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.4254, allocations: 4 kB / 488.9 MB, free: 11.98 MB / 362.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.0005437/0.426, allocations: 367.3 kB / 489.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.988e-05/0.4261, allocations: 12.03 kB / 489.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002116/0.4263, allocations: 24.83 kB / 489.3 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.4265, allocations: 180.3 kB / 489.5 MB, free: 11.32 MB / 362.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= -1 + sine.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001717/0.4267, allocations: 38.25 kB / 489.5 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.465e-05/0.4268, allocations: 8.375 kB / 489.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.4272, allocations: 169.4 kB / 489.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.4272, allocations: 3.938 kB / 489.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.4272, allocations: 4 kB / 489.7 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.4273, allocations: 0 / 489.7 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001336/0.4274, allocations: 35.97 kB / 489.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002093/0.4276, allocations: 186.4 kB / 489.9 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003143/0.4279, allocations: 178.3 kB / 490.1 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.428, allocations: 41.7 kB / 490.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.4281, allocations: 0 / 490.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.4281, allocations: 46.5 kB / 490.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.402e-06/0.4281, allocations: 0 / 490.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003677/0.4285, allocations: 121.4 kB / 490.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.4286, allocations: 81.11 kB / 490.4 MB, free: 10.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.4287, allocations: 129.3 kB / 490.5 MB, free: 10.14 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.4287, allocations: 29.83 kB / 490.5 MB, free: 10.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.163e-05/0.4288, allocations: 92.12 kB / 490.6 MB, free: 10.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.4288, allocations: 11.89 kB / 490.6 MB, free: 10 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.4288, allocations: 0 / 490.6 MB, free: 10 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.429, allocations: 318.8 kB / 490.9 MB, free: 9.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.428e-05/0.429, allocations: 19.98 kB / 491 MB, free: 9.664 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.07e-05/0.4291, allocations: 58 kB / 491 MB, free: 9.586 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.4292, allocations: 81.88 kB / 491.1 MB, free: 9.484 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4293, allocations: 0 / 491.1 MB, free: 9.484 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001919/0.4295, allocations: 109.5 kB / 491.2 MB, free: 9.371 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.4295, allocations: 11.94 kB / 491.2 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4295, allocations: 0 / 491.2 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.4295, allocations: 4 kB / 491.2 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.221e-05/0.4296, allocations: 19.94 kB / 491.2 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.4296, allocations: 7.969 kB / 491.2 MB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.973e-05/0.4297, allocations: 7.906 kB / 491.3 MB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.4297, allocations: 4 kB / 491.3 MB, free: 9.316 MB / 362.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 9.8e-05/0.4298, allocations: 126.1 kB / 491.4 MB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.4299, allocations: 73.56 kB / 491.5 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.285e-05/0.43, allocations: 12.36 kB / 491.5 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.43, allocations: 4 kB / 491.5 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.43, allocations: 3.938 kB / 491.5 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.4301, allocations: 0 / 491.5 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.4302, allocations: 177.5 kB / 491.6 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4302, allocations: 0 / 491.6 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.281e-05/0.4303, allocations: 15.98 kB / 491.7 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.4303, allocations: 3.938 kB / 491.7 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.4303, allocations: 4 kB / 491.7 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.4303, allocations: 4 kB / 491.7 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4303, allocations: 0 / 491.7 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002225/0.4306, allocations: 121.9 kB / 491.8 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.182e-05/0.4306, allocations: 92.94 kB / 491.9 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.4307, allocations: 12.31 kB / 491.9 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.244e-05/0.4307, allocations: 8 kB / 491.9 MB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.499e-05/0.4308, allocations: 7.984 kB / 491.9 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.4308, allocations: 4 kB / 491.9 MB, free: 8.555 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.489e-05/0.4309, allocations: 95.27 kB / 492 MB, free: 8.461 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4309, allocations: 0 / 492 MB, free: 8.461 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002014/0.4311, allocations: 12 kB / 492 MB, free: 8.449 MB / 362.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 0.0001606/0.4313, allocations: 103.2 kB / 492.1 MB, free: 8.336 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002108/0.4315, allocations: 63.84 kB / 492.2 MB, free: 8.273 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4315, allocations: 0 / 492.2 MB, free: 8.273 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.191e-05/0.4315, allocations: 11.98 kB / 492.2 MB, free: 8.262 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007915/0.4323, allocations: 0.7248 MB / 492.9 MB, free: 7.516 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004471/0.4328, allocations: 193.3 kB / 493.1 MB, free: 7.297 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.4332, allocations: 0.6927 MB / 493.8 MB, free: 6.578 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.86e-05/0.4332, allocations: 11.73 kB / 493.8 MB, free: 6.566 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.026e-05/0.4333, allocations: 11.44 kB / 493.8 MB, free: 6.555 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4333, allocations: 0 / 493.8 MB, free: 6.555 MB / 362.7 MB Notification: Performance of Templates: time 0.003166/0.4364, allocations: 0.6569 MB / 494.5 MB, free: 5.91 MB / 362.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/jenkins1/ws/OpenModelicaLibraryTestingWork/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