Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.356/1.356, allocations: 230.6 MB / 258.3 MB, free: 7.996 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 43.92 kB / 378.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2619, allocations: 53.35 MB / 431.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002822/0.2647, allocations: 1.629 MB / 433.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009067/0.2656, allocations: 0.5181 MB / 434.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.152e-05/0.2657, allocations: 3.938 kB / 434.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.816e-05/0.2657, allocations: 3.938 kB / 434.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.2659, allocations: 15.86 kB / 434.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002269/0.2661, allocations: 51.88 kB / 434.1 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000133/0.2662, allocations: 63.84 kB / 434.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.625e-05/0.2663, allocations: 11.98 kB / 434.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.2665, allocations: 47.78 kB / 434.3 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.537e-05/0.2666, allocations: 31.84 kB / 434.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.2666, allocations: 8 kB / 434.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.828e-05/0.2666, allocations: 8 kB / 434.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.526e-05/0.2666, allocations: 19.91 kB / 434.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.613e-05/0.2667, allocations: 27.86 kB / 434.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001438/0.2668, allocations: 69.77 kB / 434.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2668, allocations: 0 / 434.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2668, allocations: 0 / 434.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.2668, allocations: 0 / 434.4 MB, free: 4.328 MB / 334.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.0005169/0.2674, allocations: 310 kB / 434.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.2674, allocations: 12.03 kB / 434.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.419e-05/0.2674, allocations: 192 / 434.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.624e-05/0.2674, allocations: 34.75 kB / 434.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.2677, allocations: 24.88 kB / 434.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.2679, allocations: 134.4 kB / 434.9 MB, free: 3.762 MB / 334.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.0001265/0.2681, allocations: 38.27 kB / 435 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.2681, allocations: 8.125 kB / 435 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004043/0.2685, allocations: 168.8 kB / 435.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.2685, allocations: 0 / 435.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.2685, allocations: 8 kB / 435.1 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2685, allocations: 4 kB / 435.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.2686, allocations: 31.97 kB / 435.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001894/0.2688, allocations: 153.6 kB / 435.3 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/0.2691, allocations: 93.19 kB / 435.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.565e-05/0.2692, allocations: 41.64 kB / 435.5 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.2692, allocations: 7.938 kB / 435.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.2692, allocations: 34.5 kB / 435.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.2692, allocations: 0 / 435.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003465/0.2696, allocations: 113.6 kB / 435.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.979e-05/0.2697, allocations: 93.17 kB / 435.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.2698, allocations: 120.4 kB / 435.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.2698, allocations: 29.7 kB / 435.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.094e-05/0.2699, allocations: 92.12 kB / 435.9 MB, free: 2.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.2699, allocations: 3.953 kB / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/0.2699, allocations: 29.7 kB / 436 MB, free: 2.562 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.2701, allocations: 314.8 kB / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.321e-05/0.2701, allocations: 15.98 kB / 436.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.668e-05/0.2702, allocations: 62 kB / 436.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.2703, allocations: 77.88 kB / 436.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.2703, allocations: 0 / 436.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001854/0.2705, allocations: 109.6 kB / 436.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2705, allocations: 8 kB / 436.6 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2705, allocations: 0 / 436.6 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.2706, allocations: 4 kB / 436.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.378e-05/0.2706, allocations: 12.19 kB / 436.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.2706, allocations: 4 kB / 436.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.754e-05/0.2707, allocations: 19.92 kB / 436.6 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-06/0.2707, allocations: 4 kB / 436.6 MB, free: 1.887 MB / 334.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.5e-05/0.2708, allocations: 113.8 kB / 436.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.2709, allocations: 81.55 kB / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.034e-05/0.271, allocations: 16.36 kB / 436.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.271, allocations: 0 / 436.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.271, allocations: 0 / 436.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.271, allocations: 4 kB / 436.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.2711, allocations: 152.6 kB / 437 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2711, allocations: 4.125 kB / 437 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.004e-05/0.2712, allocations: 11.98 kB / 437 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.135e-05/0.2712, allocations: 7.938 kB / 437 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.2712, allocations: 0 / 437 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2712, allocations: 4 kB / 437 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2712, allocations: 0 / 437 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002291/0.2715, allocations: 121.8 kB / 437.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.531e-05/0.2715, allocations: 15.94 kB / 437.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.2715, allocations: 8 kB / 437.1 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.206e-05/0.2716, allocations: 4 kB / 437.1 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.59e-05/0.2716, allocations: 7.984 kB / 437.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.2716, allocations: 4 kB / 437.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.091e-05/0.2717, allocations: 99.27 kB / 437.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2717, allocations: 0 / 437.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001985/0.2719, allocations: 8 kB / 437.2 MB, free: 1.152 MB / 334.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.0006488/0.2725, allocations: 0.7029 MB / 437.9 MB, free: 428 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001779/0.2727, allocations: 55.91 kB / 438 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2727, allocations: 0 / 438 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.612e-05/0.2727, allocations: 8 kB / 438 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000721/0.2735, allocations: 0.7228 MB / 438.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.275, allocations: 1.417 MB / 440.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.2753, allocations: 0.6963 MB / 440.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.993e-05/0.2754, allocations: 4 kB / 440.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.144e-05/0.2754, allocations: 19.42 kB / 440.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2754, allocations: 4 kB / 440.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.2978, allocations: 2.157 MB / 443 MB, free: 11.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.61, allocations: 14.3 kB / 443 MB, free: 11.3 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.883547495002858] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 10.766368240991142 10.781291102 10.511602926 Calling exit ...