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) 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) 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=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/ModelicaServices trunk/package.mo): time 0.0009527/0.0009527, allocations: 94.45 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 198.8 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.59/1.59, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002889/0.0002891, allocations: 8 kB / 306.6 MB, free: 1.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1378, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002056/0.1399, allocations: 1.293 MB / 359.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007945/0.1408, allocations: 463.2 kB / 359.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.528e-05/0.1408, allocations: 0 / 359.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.087e-05/0.1409, allocations: 4 kB / 359.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.141, allocations: 19.91 kB / 359.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.1413, allocations: 39.89 kB / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.556e-05/0.1414, allocations: 43.88 kB / 359.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.365e-05/0.1415, allocations: 7.984 kB / 359.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.1416, allocations: 27.92 kB / 360 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.271e-05/0.1417, allocations: 35.83 kB / 360 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.1417, allocations: 4 kB / 360 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.47e-05/0.1418, allocations: 8 kB / 360 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.261e-05/0.1418, allocations: 11.92 kB / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.825e-05/0.1419, allocations: 29.7 kB / 360 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.142, allocations: 47.84 kB / 360.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.142, allocations: 0 / 360.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.142, allocations: 0 / 360.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.142, allocations: 0 / 360.1 MB, free: 11.87 MB / 302.1 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.000537/0.1426, allocations: 363.4 kB / 360.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.1426, allocations: 12.03 kB / 360.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002295/0.1429, allocations: 23.89 kB / 360.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002943/0.1432, allocations: 190.8 kB / 360.7 MB, free: 11.21 MB / 302.1 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.0001389/0.1433, allocations: 33.69 kB / 360.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.1434, allocations: 7.953 kB / 360.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003959/0.1438, allocations: 164.9 kB / 360.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.1438, allocations: 7.969 kB / 360.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.1438, allocations: 3.938 kB / 360.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.1438, allocations: 4 kB / 360.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001298/0.1439, allocations: 35.92 kB / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002244/0.1442, allocations: 182.5 kB / 361.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000297/0.1445, allocations: 170.4 kB / 361.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.1445, allocations: 0 / 361.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.1445, allocations: 46.5 kB / 361.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.1446, allocations: 0 / 361.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003804/0.1449, allocations: 194.7 kB / 361.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.863e-05/0.145, allocations: 85.11 kB / 361.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.1451, allocations: 129.6 kB / 361.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.1452, allocations: 33.64 kB / 361.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.367e-05/0.1452, allocations: 88.27 kB / 361.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.1453, allocations: 11.89 kB / 361.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-06/0.1453, allocations: 4 kB / 361.8 MB, free: 9.848 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1454, allocations: 314.8 kB / 362.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.275e-05/0.1455, allocations: 19.92 kB / 362.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.104e-05/0.1455, allocations: 66 kB / 362.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.93e-05/0.1456, allocations: 19.98 kB / 362.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1456, allocations: 0 / 362.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001873/0.1458, allocations: 109.4 kB / 362.4 MB, free: 9.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1458, allocations: 8 kB / 362.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.1459, allocations: 3.953 kB / 362.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1459, allocations: 4 kB / 362.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.147e-05/0.146, allocations: 15.98 kB / 362.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.146, allocations: 4.219 kB / 362.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.477e-05/0.146, allocations: 15.94 kB / 362.4 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.146, allocations: 0 / 362.4 MB, free: 9.242 MB / 302.1 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 0.0001271/0.1462, allocations: 121.8 kB / 362.5 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.1463, allocations: 73.89 kB / 362.6 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.479e-05/0.1464, allocations: 12.38 kB / 362.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1464, allocations: 7.953 kB / 362.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1464, allocations: 192 / 362.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1464, allocations: 4 kB / 362.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001781/0.1466, allocations: 173.6 kB / 362.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1466, allocations: 0 / 362.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.978e-05/0.1467, allocations: 15.98 kB / 362.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.1467, allocations: 0 / 362.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.1467, allocations: 11.92 kB / 362.8 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1467, allocations: 4 kB / 362.8 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1468, allocations: 3.953 kB / 362.8 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.147, allocations: 131.6 kB / 363 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.945e-05/0.1471, allocations: 96.94 kB / 363 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.1471, allocations: 0 / 363 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.062e-05/0.1472, allocations: 15.94 kB / 363.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.1473, allocations: 0 / 363.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.1473, allocations: 4 kB / 363.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.381e-05/0.1474, allocations: 99.27 kB / 363.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1474, allocations: 0 / 363.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002387/0.1476, allocations: 12 kB / 363.2 MB, free: 8.359 MB / 302.1 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.0001752/0.1478, allocations: 99.19 kB / 363.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.148, allocations: 60.28 kB / 363.3 MB, free: 8.191 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.1481, allocations: 4.062 kB / 363.3 MB, free: 8.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.006e-05/0.1481, allocations: 11.98 kB / 363.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007591/0.1489, allocations: 0.7141 MB / 364.1 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004631/0.1494, allocations: 205.4 kB / 364.3 MB, free: 7.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/0.1498, allocations: 0.6926 MB / 365 MB, free: 6.488 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.863e-05/0.1498, allocations: 7.922 kB / 365 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.1498, allocations: 15.42 kB / 365 MB, free: 6.465 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1499, allocations: 4 kB / 365 MB, free: 6.461 MB / 302.1 MB Notification: Performance of Templates: time 0.003645/0.1535, allocations: 0.651 MB / 365.6 MB, free: 5.812 MB / 302.1 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/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