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.001208/0.001208, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001358/0.001358, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.376/1.376, allocations: 230.6 MB / 258.3 MB, free: 7.77 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.002444/0.002444, allocations: 47.91 kB / 378.5 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2674, allocations: 53.36 MB / 431.9 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002842/0.2702, allocations: 1.596 MB / 433.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009119/0.2711, allocations: 490.7 kB / 433.9 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.964e-05/0.2712, allocations: 0 / 433.9 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.328e-05/0.2712, allocations: 7.922 kB / 434 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.2714, allocations: 19.75 kB / 434 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.2716, allocations: 55.92 kB / 434 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.2718, allocations: 63.78 kB / 434.1 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.828e-05/0.2718, allocations: 12 kB / 434.1 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.272, allocations: 43.83 kB / 434.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.091e-05/0.2721, allocations: 27.84 kB / 434.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.2721, allocations: 4 kB / 434.2 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.275e-05/0.2721, allocations: 12 kB / 434.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.296e-05/0.2722, allocations: 8 kB / 434.2 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.383e-05/0.2722, allocations: 35.78 kB / 434.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.2723, allocations: 76.44 kB / 434.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2724, allocations: 0 / 434.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2724, allocations: 0 / 434.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.82e-06/0.2724, allocations: 0 / 434.3 MB, free: 4.188 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.0005261/0.2729, allocations: 302 kB / 434.6 MB, free: 3.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.2729, allocations: 12.03 kB / 434.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.258e-05/0.2729, allocations: 192 / 434.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.84e-05/0.273, allocations: 38.73 kB / 434.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.2732, allocations: 24.88 kB / 434.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.2734, allocations: 130.4 kB / 434.8 MB, free: 3.629 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.0001017/0.2735, allocations: 38.25 kB / 434.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.053e-05/0.2735, allocations: 8.062 kB / 434.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003836/0.2739, allocations: 164.9 kB / 435 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.056e-06/0.2739, allocations: 0 / 435 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.2739, allocations: 0 / 435 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.274, allocations: 4 kB / 435 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.2741, allocations: 43.84 kB / 435.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001734/0.2742, allocations: 141.6 kB / 435.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000285/0.2745, allocations: 85.31 kB / 435.3 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.652e-05/0.2746, allocations: 41.64 kB / 435.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.2746, allocations: 3.938 kB / 435.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.2747, allocations: 34.56 kB / 435.4 MB, free: 2.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.2747, allocations: 0 / 435.4 MB, free: 2.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003505/0.275, allocations: 129.5 kB / 435.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.791e-05/0.2751, allocations: 81.09 kB / 435.6 MB, free: 2.742 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.2752, allocations: 125.8 kB / 435.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.2752, allocations: 25.7 kB / 435.7 MB, free: 2.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.097e-05/0.2753, allocations: 92.12 kB / 435.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.216e-05/0.2753, allocations: 7.953 kB / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.47e-05/0.2754, allocations: 25.7 kB / 435.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.2755, allocations: 314.8 kB / 436.1 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.502e-05/0.2755, allocations: 19.98 kB / 436.2 MB, free: 2.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.6e-05/0.2756, allocations: 66 kB / 436.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000136/0.2758, allocations: 73.94 kB / 436.3 MB, free: 1.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2758, allocations: 0 / 436.3 MB, free: 1.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001864/0.2759, allocations: 105.4 kB / 436.4 MB, free: 1.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.276, allocations: 11.92 kB / 436.4 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.276, allocations: 4 kB / 436.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.276, allocations: 0 / 436.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.952e-05/0.2761, allocations: 16 kB / 436.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.2761, allocations: 4 kB / 436.4 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.169e-05/0.2761, allocations: 11.92 kB / 436.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.617e-06/0.2761, allocations: 4.219 kB / 436.4 MB, free: 1.77 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.594e-05/0.2762, allocations: 125.8 kB / 436.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.2764, allocations: 77.58 kB / 436.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.718e-05/0.2764, allocations: 12.36 kB / 436.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.2764, allocations: 3.938 kB / 436.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2764, allocations: 0 / 436.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.2764, allocations: 0 / 436.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.2765, allocations: 140.7 kB / 436.8 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/0.2766, allocations: 3.984 kB / 436.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.312e-05/0.2766, allocations: 8 kB / 436.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2766, allocations: 4 kB / 436.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.2766, allocations: 11.98 kB / 436.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2766, allocations: 0 / 436.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2767, allocations: 3.938 kB / 436.8 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.2769, allocations: 122.2 kB / 437 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.006e-05/0.2769, allocations: 15.94 kB / 437 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.2769, allocations: 64 / 437 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.396e-05/0.277, allocations: 15.98 kB / 437 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.782e-05/0.2771, allocations: 0 / 437 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.2771, allocations: 4 kB / 437 MB, free: 1.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.21e-05/0.2771, allocations: 102.2 kB / 437.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2771, allocations: 0 / 437.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002025/0.2773, allocations: 12.19 kB / 437.1 MB, free: 1.039 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.0006516/0.278, allocations: 0.7029 MB / 437.8 MB, free: 312 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001925/0.2782, allocations: 55.91 kB / 437.9 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2782, allocations: 0.5 kB / 437.9 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.339e-05/0.2782, allocations: 19.92 kB / 437.9 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007465/0.279, allocations: 0.7166 MB / 438.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.2805, allocations: 1.415 MB / 440 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.099e-05/0.2806, allocations: 83.45 kB / 440.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.9e-05/0.2806, allocations: 3.984 kB / 440.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.314e-05/0.2807, allocations: 19.44 kB / 440.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2807, allocations: 0 / 440.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.3037, allocations: 2.193 MB / 442.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.85, allocations: 15.92 kB / 442.3 MB, free: 11.77 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: 13.129882059060037] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 10.999800371006131 11.01246383 10.737254562 Calling exit ...