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.001158/0.001158, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246.9 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001372, allocations: 60.5 kB / 306.9 MB, free: 1.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.13, allocations: 50.54 MB / 357.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003733/0.1337, allocations: 1.652 MB / 359.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1349, allocations: 0.5143 MB / 359.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.251e-05/0.135, allocations: 0 / 359.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.586e-05/0.1351, allocations: 3.938 kB / 359.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001659/0.1353, allocations: 7.938 kB / 359.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002708/0.1356, allocations: 47.89 kB / 359.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.1357, allocations: 63.83 kB / 359.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.1358, allocations: 19.97 kB / 359.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.136, allocations: 39.8 kB / 359.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.382e-05/0.1361, allocations: 31.83 kB / 359.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.988e-05/0.1361, allocations: 4 kB / 359.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.286e-05/0.1362, allocations: 8 kB / 359.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.768e-05/0.1362, allocations: 15.92 kB / 359.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.164e-05/0.1363, allocations: 19.88 kB / 359.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.1364, allocations: 47.91 kB / 359.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1365, allocations: 4 kB / 359.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1365, allocations: 0 / 359.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1365, allocations: 0 / 359.9 MB, free: 11.99 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.0006237/0.1371, allocations: 379.5 kB / 360.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.1372, allocations: 8.031 kB / 360.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002802/0.1374, allocations: 20.83 kB / 360.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001978/0.1377, allocations: 192.2 kB / 360.5 MB, free: 11.32 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.0001632/0.1378, allocations: 42.19 kB / 360.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.1378, allocations: 12.38 kB / 360.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004161/0.1383, allocations: 157.1 kB / 360.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1383, allocations: 0 / 360.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.1383, allocations: 4 kB / 360.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.1383, allocations: 0 / 360.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001499/0.1385, allocations: 47.84 kB / 360.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002041/0.1387, allocations: 178.4 kB / 360.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.139, allocations: 166.4 kB / 361.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.1391, allocations: 45.64 kB / 361.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.1392, allocations: 4 kB / 361.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.1392, allocations: 42.47 kB / 361.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.1392, allocations: 4 kB / 361.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003723/0.1396, allocations: 109.5 kB / 361.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.219e-05/0.1397, allocations: 85.11 kB / 361.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.959e-05/0.1398, allocations: 136.6 kB / 361.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.1398, allocations: 25.7 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.402e-05/0.1399, allocations: 88.14 kB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.782e-05/0.1399, allocations: 11.84 kB / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-05/0.1399, allocations: 21.7 kB / 361.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1401, allocations: 318.8 kB / 362 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.956e-05/0.1401, allocations: 15.98 kB / 362 MB, free: 9.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.921e-05/0.1402, allocations: 61.94 kB / 362 MB, free: 9.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.1404, allocations: 77.94 kB / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1404, allocations: 4 kB / 362.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002002/0.1406, allocations: 109.3 kB / 362.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.1406, allocations: 4.219 kB / 362.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.1406, allocations: 4 kB / 362.2 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1407, allocations: 4 kB / 362.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.054e-05/0.1407, allocations: 15.98 kB / 362.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.1408, allocations: 4 kB / 362.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.132e-05/0.1408, allocations: 0 / 362.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.1408, allocations: 8 kB / 362.3 MB, free: 9.312 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 ($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 0.0001025/0.1409, allocations: 125.7 kB / 362.4 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.1411, allocations: 77.78 kB / 362.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.463e-05/0.1411, allocations: 16.36 kB / 362.5 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1412, allocations: 4 kB / 362.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.1412, allocations: 0 / 362.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1412, allocations: 192 / 362.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.1413, allocations: 169.6 kB / 362.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1413, allocations: 7.938 kB / 362.7 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.153e-05/0.1414, allocations: 15.92 kB / 362.7 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.1414, allocations: 0 / 362.7 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.1415, allocations: 7.984 kB / 362.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.1415, allocations: 4 kB / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1415, allocations: 3.938 kB / 362.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.1417, allocations: 121.9 kB / 362.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.392e-05/0.1418, allocations: 96.94 kB / 362.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.1418, allocations: 0 / 362.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.404e-05/0.1419, allocations: 7.984 kB / 362.9 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.403e-05/0.142, allocations: 7.938 kB / 362.9 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.142, allocations: 4 kB / 362.9 MB, free: 8.551 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.5e-05/0.1421, allocations: 103.2 kB / 363 MB, free: 8.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1421, allocations: 0 / 363 MB, free: 8.449 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002221/0.1423, allocations: 12 kB / 363 MB, free: 8.438 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001577/0.1425, allocations: 103.2 kB / 363.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002125/0.1427, allocations: 55.92 kB / 363.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.1427, allocations: 448 / 363.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.242e-05/0.1427, allocations: 11.98 kB / 363.2 MB, free: 8.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007773/0.1435, allocations: 0.7174 MB / 363.9 MB, free: 7.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004677/0.144, allocations: 223.1 kB / 364.1 MB, free: 7.262 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.1443, allocations: 0.7014 MB / 364.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.893e-05/0.1444, allocations: 7.438 kB / 364.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1444, allocations: 0 / 364.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of Templates: time 0.00322/0.1476, allocations: 0.9687 MB / 365.8 MB, free: 5.559 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches