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.001658/0.001657, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.681/1.681, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002181/0.002181, allocations: 66.59 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1398, allocations: 50.54 MB / 357.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.0038/0.1437, allocations: 1.593 MB / 359.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.145, allocations: 0.5103 MB / 359.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.1452, allocations: 4 kB / 359.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.845e-05/0.1453, allocations: 7.922 kB / 359.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.1455, allocations: 11.88 kB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003167/0.1458, allocations: 55.86 kB / 359.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.1459, allocations: 59.84 kB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.1461, allocations: 15.98 kB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.1463, allocations: 47.78 kB / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.288e-05/0.1464, allocations: 31.84 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.454e-05/0.1464, allocations: 4 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.474e-05/0.1465, allocations: 8 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.629e-05/0.1465, allocations: 19.92 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.156e-05/0.1466, allocations: 27.84 kB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.1468, allocations: 63.78 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1468, allocations: 4 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1468, allocations: 0 / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.1468, allocations: 0 / 360 MB, free: 11.55 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.0007527/0.1476, allocations: 383.4 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.1477, allocations: 8.031 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000297/0.148, allocations: 20.83 kB / 360.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.1483, allocations: 192.1 kB / 360.6 MB, free: 10.87 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.0002565/0.1485, allocations: 38.25 kB / 360.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/0.1485, allocations: 8.375 kB / 360.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004873/0.149, allocations: 165 kB / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.1491, allocations: 7.922 kB / 360.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.174e-05/0.1491, allocations: 0 / 360.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.1491, allocations: 0 / 360.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001527/0.1493, allocations: 31.98 kB / 360.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002731/0.1495, allocations: 186.4 kB / 361 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003791/0.1499, allocations: 166.4 kB / 361.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.1501, allocations: 45.69 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.925e-05/0.1501, allocations: 7.969 kB / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.952e-05/0.1502, allocations: 42.5 kB / 361.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.1502, allocations: 0 / 361.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004201/0.1506, allocations: 117.7 kB / 361.4 MB, free: 9.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.1507, allocations: 81.11 kB / 361.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.1509, allocations: 136.6 kB / 361.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.1509, allocations: 25.7 kB / 361.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.393e-05/0.151, allocations: 92.2 kB / 361.7 MB, free: 9.574 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.104e-05/0.1511, allocations: 19.83 kB / 361.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.91e-05/0.1511, allocations: 17.72 kB / 361.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.1513, allocations: 322.8 kB / 362.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.151e-05/0.1514, allocations: 12 kB / 362.1 MB, free: 9.195 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.935e-05/0.1515, allocations: 58 kB / 362.1 MB, free: 9.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.1516, allocations: 81.86 kB / 362.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1517, allocations: 4 kB / 362.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001948/0.1519, allocations: 101.4 kB / 362.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.1519, allocations: 10.97 kB / 362.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1519, allocations: 0 / 362.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.1519, allocations: 4 kB / 362.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.06e-05/0.152, allocations: 20.2 kB / 362.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.152, allocations: 3.938 kB / 362.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.977e-05/0.1521, allocations: 4 kB / 362.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.1521, allocations: 4 kB / 362.4 MB, free: 8.863 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.000116/0.1522, allocations: 122 kB / 362.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.1524, allocations: 81.52 kB / 362.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.986e-05/0.1525, allocations: 12.31 kB / 362.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1525, allocations: 4 kB / 362.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.1525, allocations: 0 / 362.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.1525, allocations: 4 kB / 362.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.1527, allocations: 169.6 kB / 362.7 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.1527, allocations: 3.984 kB / 362.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.114e-05/0.1528, allocations: 15.94 kB / 362.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1528, allocations: 0 / 362.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.1528, allocations: 3.984 kB / 362.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1528, allocations: 0 / 362.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.1528, allocations: 4 kB / 362.8 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.1531, allocations: 121.9 kB / 362.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.465e-05/0.1532, allocations: 96.88 kB / 363 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.1532, allocations: 4.188 kB / 363 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.07e-05/0.1533, allocations: 11.98 kB / 363 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.241e-05/0.1533, allocations: 3.938 kB / 363 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.1533, allocations: 4 kB / 363 MB, free: 8.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.416e-05/0.1534, allocations: 103.2 kB / 363.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1534, allocations: 4 kB / 363.1 MB, free: 8.004 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002065/0.1537, allocations: 8 kB / 363.1 MB, free: 7.996 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.0001578/0.1538, allocations: 103.2 kB / 363.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000213/0.154, allocations: 63.91 kB / 363.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.154, allocations: 0 / 363.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.995e-05/0.1541, allocations: 8.375 kB / 363.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009071/0.155, allocations: 0.7181 MB / 364 MB, free: 7.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005613/0.1556, allocations: 179.3 kB / 364.2 MB, free: 6.867 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000479/0.1561, allocations: 0.7013 MB / 364.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.833e-05/0.1561, allocations: 4 kB / 364.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.163e-05/0.1562, allocations: 7.438 kB / 364.9 MB, free: 6.129 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1562, allocations: 0 / 364.9 MB, free: 6.129 MB / 302.1 MB Notification: Performance of Templates: time 0.003848/0.16, allocations: 0.7598 MB / 365.7 MB, free: 5.375 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.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/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