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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 92.53 kB / 16.3 MB, free: 5.648 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.00141/0.001411, allocations: 184.3 kB / 17.19 MB, free: 5.582 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.584/1.584, allocations: 223.2 MB / 241.1 MB, free: 5.391 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002746/0.0002747, allocations: 7.359 kB / 300.8 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 50.42 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001914/0.108, allocations: 1.279 MB / 352.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000613/0.1086, allocations: 419.3 kB / 352.9 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.102e-05/0.1087, allocations: 0 / 352.9 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.099e-05/0.1087, allocations: 7.938 kB / 352.9 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.1089, allocations: 15.92 kB / 352.9 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001761/0.1091, allocations: 31.95 kB / 353 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.487e-05/0.1092, allocations: 35.95 kB / 353 MB, free: 9.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.642e-05/0.1092, allocations: 15.92 kB / 353 MB, free: 9.805 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.932e-05/0.1094, allocations: 31.84 kB / 353.1 MB, free: 9.773 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.603e-05/0.1094, allocations: 31.83 kB / 353.1 MB, free: 9.742 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.1095, allocations: 8 kB / 353.1 MB, free: 9.734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.412e-05/0.1095, allocations: 4 kB / 353.1 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.821e-05/0.1095, allocations: 7.938 kB / 353.1 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.235e-05/0.1095, allocations: 33.64 kB / 353.1 MB, free: 9.684 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.564e-05/0.1096, allocations: 39.91 kB / 353.2 MB, free: 9.645 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1096, allocations: 4 kB / 353.2 MB, free: 9.641 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1096, allocations: 0 / 353.2 MB, free: 9.641 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.1096, allocations: 0 / 353.2 MB, free: 9.641 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.0005502/0.1102, allocations: 363.1 kB / 353.5 MB, free: 9.238 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1102, allocations: 12.03 kB / 353.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.652e-05/0.1103, allocations: 38.56 kB / 353.6 MB, free: 9.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.922e-05/0.1103, allocations: 11.86 kB / 353.6 MB, free: 9.168 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.1106, allocations: 182.9 kB / 353.8 MB, free: 8.949 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.0001576/0.1107, allocations: 37.69 kB / 353.8 MB, free: 8.906 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.1108, allocations: 4 kB / 353.8 MB, free: 8.902 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003809/0.1112, allocations: 172.8 kB / 354 MB, free: 8.715 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1112, allocations: 4 kB / 354 MB, free: 8.711 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.1112, allocations: 4 kB / 354 MB, free: 8.707 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.1112, allocations: 3.953 kB / 354 MB, free: 8.703 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.1113, allocations: 39.95 kB / 354 MB, free: 8.664 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001936/0.1115, allocations: 190.5 kB / 354.2 MB, free: 8.426 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002672/0.1118, allocations: 162.4 kB / 354.4 MB, free: 8.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.1118, allocations: 4 kB / 354.4 MB, free: 8.227 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.1119, allocations: 42.44 kB / 354.4 MB, free: 8.176 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.1119, allocations: 0 / 354.4 MB, free: 8.176 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003731/0.1123, allocations: 198.7 kB / 354.6 MB, free: 7.957 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.1124, allocations: 85.11 kB / 354.7 MB, free: 7.855 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.661e-05/0.1125, allocations: 121.8 kB / 354.8 MB, free: 7.727 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.1125, allocations: 25.83 kB / 354.8 MB, free: 7.695 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.4e-05/0.1125, allocations: 100.1 kB / 354.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.1126, allocations: 3.906 kB / 354.9 MB, free: 7.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-06/0.1126, allocations: 0 / 354.9 MB, free: 7.59 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1127, allocations: 322.8 kB / 355.3 MB, free: 7.266 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.166e-05/0.1128, allocations: 19.98 kB / 355.3 MB, free: 7.246 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.328e-05/0.1128, allocations: 62 kB / 355.3 MB, free: 7.164 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.819e-05/0.1129, allocations: 23.94 kB / 355.4 MB, free: 7.141 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1129, allocations: 0 / 355.4 MB, free: 7.141 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001715/0.1131, allocations: 101.5 kB / 355.5 MB, free: 7.035 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.1131, allocations: 11.98 kB / 355.5 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1131, allocations: 0 / 355.5 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.1132, allocations: 4 kB / 355.5 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.538e-05/0.1133, allocations: 15.94 kB / 355.5 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.1133, allocations: 8.406 kB / 355.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.671e-05/0.1133, allocations: 15.94 kB / 355.5 MB, free: 6.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.1134, allocations: 7.938 kB / 355.5 MB, free: 6.973 MB / 286.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 9.958e-05/0.1135, allocations: 117.8 kB / 355.6 MB, free: 6.848 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.1136, allocations: 73.53 kB / 355.7 MB, free: 6.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.547e-05/0.1136, allocations: 16.36 kB / 355.7 MB, free: 6.75 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.1137, allocations: 0 / 355.7 MB, free: 6.75 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1137, allocations: 0 / 355.7 MB, free: 6.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1137, allocations: 0 / 355.7 MB, free: 6.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.1138, allocations: 189.5 kB / 355.9 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1138, allocations: 0 / 355.9 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.321e-05/0.1139, allocations: 15.92 kB / 355.9 MB, free: 6.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1139, allocations: 0 / 355.9 MB, free: 6.5 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.114, allocations: 8.312 kB / 355.9 MB, free: 6.492 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.114, allocations: 4 kB / 355.9 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.114, allocations: 0 / 355.9 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002196/0.1142, allocations: 143.5 kB / 356.1 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/0.1143, allocations: 93 kB / 356.2 MB, free: 6.211 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.1143, allocations: 0 / 356.2 MB, free: 6.211 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.331e-05/0.1144, allocations: 8 kB / 356.2 MB, free: 6.203 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.902e-05/0.1144, allocations: 7.984 kB / 356.2 MB, free: 6.195 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.727e-06/0.1144, allocations: 0 / 356.2 MB, free: 6.195 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.507e-05/0.1145, allocations: 102.4 kB / 356.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1145, allocations: 0 / 356.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002037/0.1147, allocations: 15.95 kB / 356.3 MB, free: 6.082 MB / 286.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.0006454/0.1154, allocations: 0.7774 MB / 357.1 MB, free: 5.27 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001961/0.1156, allocations: 59.91 kB / 357.1 MB, free: 5.211 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1156, allocations: 0 / 357.1 MB, free: 5.211 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.848e-05/0.1156, allocations: 8.5 kB / 357.2 MB, free: 5.203 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007246/0.1164, allocations: 0.7141 MB / 357.9 MB, free: 4.465 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.1177, allocations: 1.461 MB / 359.3 MB, free: 2.93 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.118, allocations: 0.6965 MB / 360 MB, free: 2.207 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.515e-05/0.118, allocations: 12.11 kB / 360 MB, free: 2.195 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.127e-05/0.1181, allocations: 23.38 kB / 360.1 MB, free: 2.172 MB / 286.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1181, allocations: 3.938 kB / 360.1 MB, free: 2.168 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01373/0.1318, allocations: 1.648 MB / 361.7 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00021/0.1321, allocations: 199.6 kB / 361.9 MB, free: 448 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.001, allocations: 0 / 361.9 MB, free: 448 kB / 286.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat does not exist to compare? outputFormat=mat