Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 89.39 kB / 16.32 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009274/0.0009275, allocations: 176.2 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 223.3 MB / 241.2 MB, free: 14.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002498/0.0002498, allocations: 4 kB / 300.8 MB, free: 6.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.133, allocations: 50.43 MB / 351.3 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001895/0.135, allocations: 1.28 MB / 352.5 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007198/0.1357, allocations: 435.3 kB / 353 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.276e-05/0.1358, allocations: 0 / 353 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.217e-05/0.1359, allocations: 3.938 kB / 353 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.136, allocations: 7.938 kB / 353 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002048/0.1362, allocations: 39.89 kB / 353 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001007/0.1363, allocations: 55.84 kB / 353.1 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.786e-05/0.1364, allocations: 11.98 kB / 353.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.1366, allocations: 27.86 kB / 353.1 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.728e-05/0.1366, allocations: 31.84 kB / 353.1 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.1367, allocations: 7.984 kB / 353.1 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.433e-05/0.1367, allocations: 4 kB / 353.1 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.944e-05/0.1367, allocations: 3.984 kB / 353.2 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.936e-05/0.1367, allocations: 37.64 kB / 353.2 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.762e-05/0.1368, allocations: 35.92 kB / 353.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1368, allocations: 0 / 353.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1369, allocations: 4 kB / 353.2 MB, free: 1.758 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1369, allocations: 3.938 kB / 353.2 MB, free: 1.754 MB / 286.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.0004925/0.1374, allocations: 367.4 kB / 353.6 MB, free: 1.348 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.1374, allocations: 12.03 kB / 353.6 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.396e-05/0.1375, allocations: 7.906 kB / 353.6 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/0.1377, allocations: 190.8 kB / 353.8 MB, free: 1.102 MB / 286.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.0001445/0.1378, allocations: 37.69 kB / 353.8 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.1379, allocations: 12 kB / 353.8 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003586/0.1382, allocations: 156.9 kB / 354 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.1382, allocations: 0 / 354 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.1383, allocations: 3.953 kB / 354 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.1383, allocations: 7.984 kB / 354 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001227/0.1384, allocations: 39.92 kB / 354 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001956/0.1386, allocations: 174.5 kB / 354.2 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.1389, allocations: 174.4 kB / 354.4 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.296e-05/0.139, allocations: 49.64 kB / 354.4 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.1391, allocations: 3.984 kB / 354.4 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.1391, allocations: 34.56 kB / 354.5 MB, free: 300 kB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.1391, allocations: 0 / 354.5 MB, free: 300 kB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003442/0.1394, allocations: 125.5 kB / 354.6 MB, free: 168 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.1395, allocations: 85.06 kB / 354.7 MB, free: 64 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.1397, allocations: 129.1 kB / 354.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.1397, allocations: 25.7 kB / 354.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.102e-05/0.1397, allocations: 88.14 kB / 354.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.391e-05/0.1398, allocations: 11.84 kB / 354.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-06/0.1398, allocations: 0 / 354.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1399, allocations: 323 kB / 355.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.865e-05/0.14, allocations: 19.98 kB / 355.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.256e-05/0.1401, allocations: 61.94 kB / 355.3 MB, free: 15.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.324e-05/0.1402, allocations: 24 kB / 355.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1402, allocations: 0 / 355.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000177/0.1404, allocations: 109.4 kB / 355.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.1404, allocations: 7.938 kB / 355.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1404, allocations: 4 kB / 355.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.1404, allocations: 4 kB / 355.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.085e-05/0.1405, allocations: 12 kB / 355.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.1405, allocations: 7.938 kB / 355.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.083e-05/0.1406, allocations: 7.938 kB / 355.5 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.1406, allocations: 8.219 kB / 355.5 MB, free: 15.18 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.0001/0.1407, allocations: 125.8 kB / 355.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.1408, allocations: 69.59 kB / 355.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.243e-05/0.1409, allocations: 12.36 kB / 355.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1409, allocations: 4 kB / 355.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1409, allocations: 0 / 355.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1409, allocations: 3.953 kB / 355.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.141, allocations: 169.6 kB / 355.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1411, allocations: 0 / 355.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.422e-05/0.1411, allocations: 16.48 kB / 355.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1411, allocations: 4 kB / 355.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.1412, allocations: 11.94 kB / 355.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.1412, allocations: 4 kB / 355.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.1412, allocations: 7.922 kB / 355.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002088/0.1414, allocations: 129.8 kB / 356.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.499e-05/0.1415, allocations: 89 kB / 356.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.1415, allocations: 4 kB / 356.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.78e-05/0.1416, allocations: 7.984 kB / 356.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.214e-05/0.1416, allocations: 3.938 kB / 356.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.1417, allocations: 8 kB / 356.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.274e-05/0.1417, allocations: 95.27 kB / 356.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1417, allocations: 0 / 356.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000203/0.1419, allocations: 12 kB / 356.3 MB, free: 14.31 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.000117/0.1421, allocations: 99.25 kB / 356.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001893/0.1422, allocations: 63.84 kB / 356.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1423, allocations: 0 / 356.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.855e-05/0.1423, allocations: 11.98 kB / 356.4 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006324/0.1429, allocations: 0.7185 MB / 357.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003921/0.1433, allocations: 189.4 kB / 357.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.1436, allocations: 0.7005 MB / 358 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.341e-05/0.1437, allocations: 4.172 kB / 358 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.081e-05/0.1437, allocations: 11.44 kB / 358.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1437, allocations: 0 / 358.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of Templates: time 0.003014/0.1467, allocations: 0.664 MB / 358.7 MB, free: 11.78 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches