Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0-beta_om_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 trunk/package.mo): time 0.001336/0.001336, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.448/1.448, allocations: 227.7 MB / 247.1 MB, free: 10.35 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001912, allocations: 64.64 kB / 307.3 MB, free: 408 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09977, allocations: 50.53 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003123/0.1029, allocations: 1.601 MB / 359.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000964/0.1039, allocations: 0.5026 MB / 360 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.008e-05/0.104, allocations: 7.938 kB / 360 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.763e-05/0.1041, allocations: 3.938 kB / 360 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.1042, allocations: 15.86 kB / 360 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.1045, allocations: 47.89 kB / 360.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.1046, allocations: 63.84 kB / 360.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.1047, allocations: 23.95 kB / 360.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.1049, allocations: 39.8 kB / 360.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.555e-05/0.105, allocations: 35.77 kB / 360.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.917e-05/0.105, allocations: 4 kB / 360.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.938e-05/0.105, allocations: 12 kB / 360.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.556e-05/0.1051, allocations: 19.92 kB / 360.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.738e-05/0.1051, allocations: 23.86 kB / 360.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001333/0.1053, allocations: 67.78 kB / 360.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.1053, allocations: 4 kB / 360.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1053, allocations: 3.938 kB / 360.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.1053, allocations: 0 / 360.3 MB, free: 11.37 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.000585/0.1059, allocations: 383.4 kB / 360.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1059, allocations: 8.031 kB / 360.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.254e-05/0.106, allocations: 38.75 kB / 360.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002221/0.1062, allocations: 24.83 kB / 360.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002267/0.1065, allocations: 188.2 kB / 361 MB, free: 10.64 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.0001489/0.1066, allocations: 34.25 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.1066, allocations: 8.375 kB / 361 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003986/0.107, allocations: 160.9 kB / 361.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.1071, allocations: 0 / 361.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.1071, allocations: 4 kB / 361.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.1071, allocations: 4 kB / 361.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001494/0.1072, allocations: 35.91 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002063/0.1075, allocations: 182.4 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003263/0.1078, allocations: 178.4 kB / 361.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.1079, allocations: 37.7 kB / 361.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/0.1079, allocations: 11.92 kB / 361.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.108, allocations: 34.56 kB / 361.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.108, allocations: 0 / 361.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003477/0.1083, allocations: 117.5 kB / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.218e-05/0.1084, allocations: 81.11 kB / 361.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.1086, allocations: 128.5 kB / 362 MB, free: 9.488 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.1086, allocations: 25.7 kB / 362 MB, free: 9.457 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.432e-05/0.1087, allocations: 96.08 kB / 362.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.1087, allocations: 11.83 kB / 362.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.487e-05/0.1088, allocations: 21.84 kB / 362.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.1089, allocations: 322.8 kB / 362.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.712e-05/0.109, allocations: 15.94 kB / 362.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.247e-05/0.1091, allocations: 58 kB / 362.5 MB, free: 8.902 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.1092, allocations: 81.92 kB / 362.6 MB, free: 8.801 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1093, allocations: 0 / 362.6 MB, free: 8.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000222/0.1095, allocations: 109.3 kB / 362.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1095, allocations: 4 kB / 362.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1095, allocations: 4 kB / 362.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.1095, allocations: 0 / 362.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.996e-05/0.1096, allocations: 15.98 kB / 362.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.1097, allocations: 4 kB / 362.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.151e-05/0.1097, allocations: 7.938 kB / 362.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.1097, allocations: 16.2 kB / 362.7 MB, free: 8.637 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.0001062/0.1099, allocations: 113.8 kB / 362.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.11, allocations: 77.52 kB / 362.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.474e-05/0.1101, allocations: 12.38 kB / 362.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1101, allocations: 0 / 362.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1101, allocations: 0 / 362.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1101, allocations: 0 / 362.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.1103, allocations: 173.6 kB / 363.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1103, allocations: 3.938 kB / 363.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.155e-05/0.1104, allocations: 20.23 kB / 363.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.1104, allocations: 0 / 363.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.1104, allocations: 11.98 kB / 363.1 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.1104, allocations: 4 kB / 363.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1104, allocations: 0 / 363.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.1107, allocations: 117.9 kB / 363.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.929e-05/0.1108, allocations: 104.8 kB / 363.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/0.1108, allocations: 8 kB / 363.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.94e-05/0.1109, allocations: 3.984 kB / 363.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.1109, allocations: 8.188 kB / 363.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.1109, allocations: 0 / 363.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.176e-05/0.111, allocations: 103.1 kB / 363.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.111, allocations: 0 / 363.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002812/0.1113, allocations: 16 kB / 363.5 MB, free: 7.77 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.0006642/0.112, allocations: 0.6874 MB / 364.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002068/0.1122, allocations: 63.84 kB / 364.3 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1122, allocations: 0.5 kB / 364.3 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.005e-05/0.1123, allocations: 11.98 kB / 364.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007263/0.113, allocations: 0.7158 MB / 365 MB, free: 6.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.1146, allocations: 1.412 MB / 366.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003565/0.115, allocations: 0.6963 MB / 367.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.055e-05/0.1151, allocations: 8 kB / 367.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.201e-05/0.1152, allocations: 23.42 kB / 367.1 MB, free: 3.941 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1152, allocations: 0 / 367.1 MB, free: 3.941 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03798/0.1532, allocations: 1.925 MB / 369 MB, free: 2.133 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.103/8.256, allocations: 7.047 kB / 369.1 MB, free: 2.129 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1)