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.001484/0.001483, allocations: 106.2 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001441/0.001442, allocations: 205.8 kB / 18.27 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.558/1.558, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.05 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1256, allocations: 50.53 MB / 357 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.004074/0.1297, allocations: 1.651 MB / 358.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.1312, allocations: 0.5104 MB / 359.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.1314, allocations: 0 / 359.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.796e-05/0.1315, allocations: 3.938 kB / 359.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.1317, allocations: 11.94 kB / 359.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.1321, allocations: 39.95 kB / 359.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.1324, allocations: 63.84 kB / 359.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.1325, allocations: 15.97 kB / 359.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002513/0.1328, allocations: 51.78 kB / 359.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.705e-05/0.1329, allocations: 35.83 kB / 359.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.1329, allocations: 4 kB / 359.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.842e-05/0.133, allocations: 12 kB / 359.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.656e-05/0.1331, allocations: 11.92 kB / 359.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.338e-05/0.1332, allocations: 23.88 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002832/0.1334, allocations: 63.78 kB / 359.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.1335, allocations: 0 / 359.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.5e-06/0.1335, allocations: 0 / 359.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.1335, allocations: 7.922 kB / 359.5 MB, free: 11.88 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.0009004/0.1344, allocations: 375.5 kB / 359.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/0.1345, allocations: 12.03 kB / 359.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000334/0.1348, allocations: 28.81 kB / 359.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.1352, allocations: 192.1 kB / 360.1 MB, free: 11.2 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.0002516/0.1354, allocations: 38.25 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.1355, allocations: 4.375 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004766/0.1359, allocations: 173 kB / 360.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.136, allocations: 0 / 360.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.136, allocations: 7.938 kB / 360.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.136, allocations: 0 / 360.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001488/0.1362, allocations: 31.97 kB / 360.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002559/0.1364, allocations: 186.4 kB / 360.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.1368, allocations: 174.3 kB / 360.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.1369, allocations: 37.7 kB / 360.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.1369, allocations: 4 kB / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.1369, allocations: 38.5 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.1369, allocations: 0 / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004005/0.1373, allocations: 113.5 kB / 360.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.097e-05/0.1374, allocations: 85.11 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.1376, allocations: 128.3 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.1376, allocations: 29.83 kB / 361.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.863e-05/0.1377, allocations: 96.12 kB / 361.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.045e-05/0.1377, allocations: 11.78 kB / 361.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.733e-05/0.1378, allocations: 25.72 kB / 361.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1379, allocations: 314.8 kB / 361.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.542e-05/0.138, allocations: 19.98 kB / 361.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.033e-05/0.138, allocations: 62 kB / 361.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.1382, allocations: 77.88 kB / 361.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1382, allocations: 0 / 361.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002259/0.1384, allocations: 101.4 kB / 361.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1384, allocations: 8 kB / 361.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1385, allocations: 0 / 361.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.1385, allocations: 4.219 kB / 361.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.773e-05/0.1386, allocations: 15.98 kB / 361.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.1386, allocations: 7.938 kB / 361.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.32e-05/0.1387, allocations: 8 kB / 361.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.1387, allocations: 7.984 kB / 361.8 MB, free: 9.195 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.0001546/0.1388, allocations: 118 kB / 362 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.139, allocations: 77.72 kB / 362 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.158e-05/0.139, allocations: 12.38 kB / 362.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.139, allocations: 7.922 kB / 362.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1391, allocations: 8.062 kB / 362.1 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1391, allocations: 4 kB / 362.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.1392, allocations: 169.6 kB / 362.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1392, allocations: 0 / 362.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.884e-05/0.1393, allocations: 15.92 kB / 362.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.1393, allocations: 0 / 362.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.1394, allocations: 8 kB / 362.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1394, allocations: 0 / 362.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.1394, allocations: 0 / 362.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002605/0.1396, allocations: 125.8 kB / 362.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.277e-05/0.1397, allocations: 96.94 kB / 362.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.1398, allocations: 7.938 kB / 362.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.118e-05/0.1399, allocations: 11.94 kB / 362.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.249e-05/0.1399, allocations: 0 / 362.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.1399, allocations: 7.984 kB / 362.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.975e-05/0.14, allocations: 95.2 kB / 362.6 MB, free: 8.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.14, allocations: 4 kB / 362.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002233/0.1402, allocations: 16 kB / 362.6 MB, free: 8.32 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.0001565/0.1404, allocations: 95.25 kB / 362.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.1407, allocations: 55.91 kB / 362.8 MB, free: 8.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1407, allocations: 0 / 362.8 MB, free: 8.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.232e-05/0.1408, allocations: 20.36 kB / 362.8 MB, free: 8.141 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007833/0.1416, allocations: 0.7181 MB / 363.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004869/0.1421, allocations: 191.5 kB / 363.7 MB, free: 7.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.1424, allocations: 0.6973 MB / 364.4 MB, free: 6.457 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.7e-05/0.1425, allocations: 4 kB / 364.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.524e-05/0.1425, allocations: 11.42 kB / 364.4 MB, free: 6.441 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1425, allocations: 0 / 364.4 MB, free: 6.441 MB / 302.1 MB Notification: Performance of Templates: time 0.003911/0.1464, allocations: 0.7397 MB / 365.1 MB, free: 5.707 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","/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