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.001199/0.001199, allocations: 91.67 kB / 16.65 MB, free: 6.348 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.00116/0.00116, allocations: 177 kB / 17.56 MB, free: 5.949 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.544/1.544, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003091/0.0003087, allocations: 8 kB / 301.4 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1217, allocations: 50.42 MB / 351.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001936/0.1236, allocations: 1.296 MB / 353.1 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007135/0.1244, allocations: 443 kB / 353.6 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.028e-05/0.1245, allocations: 0 / 353.6 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.994e-05/0.1245, allocations: 3.984 kB / 353.6 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.1247, allocations: 11.86 kB / 353.6 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002479/0.1249, allocations: 39.91 kB / 353.6 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.1251, allocations: 59.78 kB / 353.7 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.1253, allocations: 19.98 kB / 353.7 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.1254, allocations: 31.84 kB / 353.7 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.843e-05/0.1255, allocations: 27.84 kB / 353.8 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.1255, allocations: 4 kB / 353.8 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.495e-05/0.1256, allocations: 0 / 353.8 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.307e-05/0.1256, allocations: 11.94 kB / 353.8 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.202e-05/0.1257, allocations: 57.48 kB / 353.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.1258, allocations: 55.78 kB / 353.9 MB, free: 1.641 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1258, allocations: 0 / 353.9 MB, free: 1.641 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1258, allocations: 0 / 353.9 MB, free: 1.641 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.1258, allocations: 4 kB / 353.9 MB, free: 1.637 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.0005967/0.1264, allocations: 359.6 kB / 354.2 MB, free: 1.238 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.1265, allocations: 12.03 kB / 354.3 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.174e-05/0.1265, allocations: 8.844 kB / 354.3 MB, free: 1.219 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.1268, allocations: 188.2 kB / 354.4 MB, free: 0.9961 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.0001757/0.127, allocations: 38.2 kB / 354.5 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.48e-05/0.127, allocations: 4.375 kB / 354.5 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000411/0.1274, allocations: 169 kB / 354.7 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.1274, allocations: 0 / 354.7 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.1275, allocations: 8 kB / 354.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.1275, allocations: 0 / 354.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001349/0.1276, allocations: 43.91 kB / 354.7 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002233/0.1278, allocations: 182.4 kB / 354.9 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.1282, allocations: 166.4 kB / 355 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.1283, allocations: 49.64 kB / 355.1 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.1283, allocations: 8 kB / 355.1 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.1283, allocations: 38.44 kB / 355.1 MB, free: 180 kB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.1284, allocations: 0 / 355.1 MB, free: 180 kB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.000354/0.1287, allocations: 125.6 kB / 355.3 MB, free: 48 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.467e-05/0.1288, allocations: 85.11 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.969e-05/0.1289, allocations: 121.8 kB / 355.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.1289, allocations: 25.7 kB / 355.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.14e-05/0.129, allocations: 92.12 kB / 355.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.129, allocations: 7.906 kB / 355.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-05/0.1291, allocations: 17.72 kB / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1292, allocations: 318.9 kB / 355.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.221e-05/0.1293, allocations: 19.98 kB / 355.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.759e-05/0.1294, allocations: 65.94 kB / 356 MB, free: 15.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.1295, allocations: 77.94 kB / 356.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1295, allocations: 0 / 356.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001949/0.1297, allocations: 113.3 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1298, allocations: 4 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.1298, allocations: 7.984 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.1298, allocations: 0 / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.011e-05/0.1299, allocations: 20.2 kB / 356.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.1299, allocations: 4 kB / 356.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.966e-05/0.13, allocations: 15.92 kB / 356.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.13, allocations: 4 kB / 356.2 MB, free: 14.96 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 9.792e-05/0.1301, allocations: 122 kB / 356.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.1302, allocations: 77.53 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.77e-05/0.1303, allocations: 12.36 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.1303, allocations: 0 / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1303, allocations: 4 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1303, allocations: 4 kB / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.1305, allocations: 169.6 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1305, allocations: 0 / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.512e-05/0.1306, allocations: 23.86 kB / 356.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1306, allocations: 0 / 356.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.1306, allocations: 4 kB / 356.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.1306, allocations: 0 / 356.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1306, allocations: 7.938 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.1308, allocations: 129.8 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.131, allocations: 93.12 kB / 356.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.131, allocations: 4 kB / 356.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.935e-05/0.1311, allocations: 7.938 kB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.833e-05/0.1311, allocations: 4 kB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.1311, allocations: 7.984 kB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.078e-05/0.1312, allocations: 102.9 kB / 357 MB, free: 14.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1312, allocations: 0 / 357 MB, free: 14.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002134/0.1314, allocations: 12 kB / 357 MB, free: 14.09 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.0001344/0.1316, allocations: 103.1 kB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002087/0.1318, allocations: 64.28 kB / 357.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.1318, allocations: 4.062 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.878e-05/0.1318, allocations: 4 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007383/0.1326, allocations: 0.7207 MB / 357.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003958/0.133, allocations: 197.6 kB / 358.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.1333, allocations: 0.6926 MB / 358.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.272e-05/0.1333, allocations: 4 kB / 358.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.1334, allocations: 19.42 kB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1334, allocations: 0 / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of Templates: time 0.003467/0.1369, allocations: 0.6817 MB / 359.5 MB, free: 11.53 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