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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001765/0.001765, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002155/0.002155, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.49/1.49, allocations: 230.5 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001949/0.001949, allocations: 67.89 kB / 373.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1069, allocations: 53.31 MB / 426.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002952/0.1098, allocations: 1.607 MB / 428.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.1108, allocations: 0.5143 MB / 429 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.515e-05/0.1109, allocations: 4 kB / 429 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.523e-05/0.1109, allocations: 7.875 kB / 429 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.1111, allocations: 15.86 kB / 429 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.1114, allocations: 43.94 kB / 429.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001361/0.1115, allocations: 75.7 kB / 429.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.47e-05/0.1116, allocations: 12 kB / 429.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.1118, allocations: 43.78 kB / 429.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.722e-05/0.1118, allocations: 35.83 kB / 429.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.1119, allocations: 8 kB / 429.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.153e-05/0.1119, allocations: 4 kB / 429.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.382e-05/0.1119, allocations: 8 kB / 429.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.26e-05/0.112, allocations: 39.73 kB / 429.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001516/0.1121, allocations: 63.72 kB / 429.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1121, allocations: 0 / 429.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1121, allocations: 0 / 429.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.1121, allocations: 4 kB / 429.4 MB, free: 2.355 MB / 350.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.0006309/0.1128, allocations: 387.1 kB / 429.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.244e-05/0.1129, allocations: 12.03 kB / 429.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.73e-05/0.1129, allocations: 34.73 kB / 429.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002234/0.1132, allocations: 20.88 kB / 429.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.1134, allocations: 188.2 kB / 430 MB, free: 1.633 MB / 350.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.0001142/0.1136, allocations: 48.27 kB / 430 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.576e-05/0.1136, allocations: 4.375 kB / 430 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003987/0.114, allocations: 164.9 kB / 430.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.114, allocations: 0 / 430.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.114, allocations: 0 / 430.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.114, allocations: 0 / 430.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001243/0.1141, allocations: 43.91 kB / 430.3 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002117/0.1143, allocations: 182.5 kB / 430.4 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.1146, allocations: 158.4 kB / 430.6 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.658e-05/0.1147, allocations: 41.64 kB / 430.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.1148, allocations: 11.92 kB / 430.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.1148, allocations: 38.55 kB / 430.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.1148, allocations: 0 / 430.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004487/0.1152, allocations: 117.5 kB / 430.8 MB, free: 0.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.443e-05/0.1153, allocations: 85.23 kB / 430.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.1154, allocations: 128.6 kB / 431 MB, free: 484 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.1155, allocations: 25.7 kB / 431 MB, free: 452 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.966e-05/0.1155, allocations: 92.08 kB / 431.1 MB, free: 356 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.1155, allocations: 11.95 kB / 431.1 MB, free: 344 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.73e-05/0.1156, allocations: 21.7 kB / 431.1 MB, free: 316 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1928/0.3083, allocations: 314.8 kB / 431.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.3085, allocations: 17 kB / 431.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.57e-05/0.3085, allocations: 60.8 kB / 431.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.3087, allocations: 80.62 kB / 431.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3087, allocations: 1.344 kB / 431.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002145/0.3089, allocations: 102.5 kB / 431.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.3089, allocations: 6.062 kB / 431.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3089, allocations: 2.125 kB / 431.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.3089, allocations: 3.281 kB / 431.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.516e-05/0.309, allocations: 20.02 kB / 431.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.309, allocations: 3.062 kB / 431.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.582e-05/0.3091, allocations: 10.64 kB / 431.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.3091, allocations: 4.328 kB / 431.8 MB, free: 10.93 MB / 350.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 8.237e-05/0.3092, allocations: 119 kB / 431.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.3093, allocations: 77.8 kB / 432 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.52e-05/0.3094, allocations: 13.22 kB / 432 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.3094, allocations: 6.188 kB / 432 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3094, allocations: 0 / 432 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3094, allocations: 2.922 kB / 432 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.845e-05/0.3095, allocations: 173.7 kB / 432.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3095, allocations: 1 kB / 432.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.946e-05/0.3095, allocations: 12.27 kB / 432.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3095, allocations: 3.875 kB / 432.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.3096, allocations: 6.156 kB / 432.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.3096, allocations: 6.422 kB / 432.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3096, allocations: 0 / 432.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002025/0.3098, allocations: 122.5 kB / 432.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.896e-05/0.3098, allocations: 96.33 kB / 432.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.3098, allocations: 5.984 kB / 432.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.924e-05/0.3099, allocations: 8.766 kB / 432.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.573e-05/0.3099, allocations: 6.453 kB / 432.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.31, allocations: 4.344 kB / 432.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.479e-05/0.31, allocations: 94.53 kB / 432.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.31, allocations: 2.844 kB / 432.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002573/0.3103, allocations: 15.94 kB / 432.5 MB, free: 10.34 MB / 350.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.0004638/0.3107, allocations: 0.694 MB / 433.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000187/0.3109, allocations: 62.47 kB / 433.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3109, allocations: 0 / 433.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.329e-05/0.3109, allocations: 5.688 kB / 433.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.3114, allocations: 0.7233 MB / 434 MB, free: 9.066 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.3126, allocations: 1.405 MB / 435.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.3127, allocations: 0.6945 MB / 436.1 MB, free: 7.168 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.217e-05/0.3127, allocations: 6.406 kB / 436.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.403e-05/0.3128, allocations: 21.22 kB / 436.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3128, allocations: 0 / 436.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.338, allocations: 1.996 MB / 438.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.045/8.383, allocations: 8.625 kB / 438.1 MB, free: 6.793 MB / 350.1 MB " [Timeout remaining time 652] (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 --stepSize=0.000199561 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.72743522701785] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 8.453177832998335 8.475244028 8.359043377 Calling exit ...