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.001345/0.001345, allocations: 109.9 kB / 17.68 MB, free: 5.332 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.001616/0.001616, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.437/1.437, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009987/0.0009989, allocations: 55.17 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1092, allocations: 49.45 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003046/0.1123, allocations: 1.569 MB / 353.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007536/0.1131, allocations: 452.3 kB / 353.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.131e-05/0.1132, allocations: 0 / 353.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.437e-05/0.1133, allocations: 7.922 kB / 353.5 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.1134, allocations: 19.81 kB / 353.5 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002079/0.1136, allocations: 33.95 kB / 353.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.1138, allocations: 71.77 kB / 353.6 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.1139, allocations: 19.97 kB / 353.7 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.114, allocations: 31.86 kB / 353.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.039e-05/0.1141, allocations: 35.83 kB / 353.7 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.1141, allocations: 4 kB / 353.7 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.455e-05/0.1142, allocations: 8 kB / 353.7 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.128e-05/0.1142, allocations: 19.92 kB / 353.8 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.716e-05/0.1142, allocations: 27.8 kB / 353.8 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001198/0.1144, allocations: 55.8 kB / 353.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.1144, allocations: 3.984 kB / 353.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1144, allocations: 0 / 353.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.1144, allocations: 0 / 353.8 MB, free: 1.32 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.0005944/0.115, allocations: 375.2 kB / 354.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.115, allocations: 8.031 kB / 354.2 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.177e-05/0.1151, allocations: 12.83 kB / 354.2 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.1154, allocations: 200.1 kB / 354.4 MB, free: 0.6523 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.0001133/0.1155, allocations: 34.25 kB / 354.5 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.1155, allocations: 4.375 kB / 354.5 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000386/0.1159, allocations: 173 kB / 354.6 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1159, allocations: 0 / 354.6 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.1159, allocations: 0 / 354.6 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1159, allocations: 0 / 354.6 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001275/0.1161, allocations: 39.91 kB / 354.7 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001887/0.1163, allocations: 182.5 kB / 354.9 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003563/0.1166, allocations: 174.4 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.1168, allocations: 41.7 kB / 355.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.1168, allocations: 0 / 355.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.1168, allocations: 38.5 kB / 355.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.1168, allocations: 0 / 355.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003468/0.1172, allocations: 113.5 kB / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.1173, allocations: 85.11 kB / 355.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.1174, allocations: 121.8 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.1174, allocations: 33.7 kB / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.104e-05/0.1174, allocations: 84.14 kB / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.498e-05/0.1175, allocations: 11.89 kB / 355.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.883e-05/0.1175, allocations: 21.72 kB / 355.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1177, allocations: 327 kB / 355.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.757e-05/0.1177, allocations: 8 kB / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.592e-05/0.1178, allocations: 65.92 kB / 356 MB, free: 14.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.118, allocations: 74.19 kB / 356 MB, free: 14.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.118, allocations: 0 / 356 MB, free: 14.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001763/0.1182, allocations: 113.3 kB / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1182, allocations: 8 kB / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1182, allocations: 0 / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.1182, allocations: 4 kB / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.652e-05/0.1183, allocations: 15.98 kB / 356.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.1183, allocations: 0 / 356.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.578e-05/0.1184, allocations: 11.94 kB / 356.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.1184, allocations: 4 kB / 356.2 MB, free: 14.66 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.737e-05/0.1185, allocations: 126.1 kB / 356.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.1186, allocations: 77.52 kB / 356.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.642e-05/0.1187, allocations: 16.31 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1187, allocations: 3.984 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.1187, allocations: 4 kB / 356.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1187, allocations: 3.938 kB / 356.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/0.1189, allocations: 177.5 kB / 356.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1189, allocations: 0 / 356.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.505e-05/0.119, allocations: 15.88 kB / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.13e-05/0.119, allocations: 8 kB / 356.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.119, allocations: 7.984 kB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.119, allocations: 0 / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.119, allocations: 0 / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002136/0.1192, allocations: 114 kB / 356.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.238e-05/0.1193, allocations: 96.94 kB / 356.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.1194, allocations: 4 kB / 356.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.215e-05/0.1194, allocations: 15.98 kB / 356.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.12e-05/0.1195, allocations: 0 / 356.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.1195, allocations: 4 kB / 356.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.936e-05/0.1196, allocations: 94.27 kB / 356.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1196, allocations: 0 / 356.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000212/0.1198, allocations: 16 kB / 356.9 MB, free: 13.79 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.0001349/0.1199, allocations: 103.8 kB / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001986/0.1201, allocations: 67.89 kB / 357.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1201, allocations: 0 / 357.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.787e-05/0.1202, allocations: 8 kB / 357.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006795/0.1209, allocations: 0.718 MB / 357.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004106/0.1213, allocations: 183.8 kB / 358 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.1216, allocations: 0.6924 MB / 358.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.034e-05/0.1216, allocations: 4 kB / 358.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.1217, allocations: 7.438 kB / 358.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1217, allocations: 0 / 358.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of Templates: time 0.003311/0.125, allocations: 0.7563 MB / 359.5 MB, free: 11.17 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 -s gbode -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/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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches