Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001719/0.001719, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002597/0.002597, allocations: 219.8 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 230.5 MB / 258.2 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002399/0.002399, allocations: 63.89 kB / 378.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3665, allocations: 53.4 MB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003377/0.3699, allocations: 1.615 MB / 433.6 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.371, allocations: 0.5219 MB / 434.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.224e-05/0.3711, allocations: 0 / 434.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.998e-05/0.3712, allocations: 11.92 kB / 434.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.3714, allocations: 15.81 kB / 434.1 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.3716, allocations: 51.94 kB / 434.2 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000147/0.3718, allocations: 67.77 kB / 434.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.3719, allocations: 8 kB / 434.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000176/0.3721, allocations: 43.83 kB / 434.3 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.945e-05/0.3721, allocations: 31.86 kB / 434.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.3722, allocations: 4 kB / 434.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.576e-05/0.3722, allocations: 11.98 kB / 434.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.318e-05/0.3722, allocations: 11.94 kB / 434.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.854e-05/0.3723, allocations: 31.84 kB / 434.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001703/0.3725, allocations: 77.28 kB / 434.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3725, allocations: 0 / 434.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3725, allocations: 0 / 434.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.3725, allocations: 0 / 434.5 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.0005633/0.373, allocations: 302 kB / 434.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.3731, allocations: 12.03 kB / 434.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.143e-05/0.3731, allocations: 4.172 kB / 434.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.991e-05/0.3731, allocations: 38.75 kB / 434.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000243/0.3734, allocations: 24.88 kB / 434.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003652/0.3738, allocations: 130.4 kB / 435 MB, free: 3.625 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.0001319/0.3739, allocations: 42.19 kB / 435 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.3739, allocations: 8.125 kB / 435 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004344/0.3743, allocations: 160.9 kB / 435.2 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3744, allocations: 4 kB / 435.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.3744, allocations: 4 kB / 435.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.3744, allocations: 0 / 435.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.3745, allocations: 39.91 kB / 435.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002203/0.3747, allocations: 149.6 kB / 435.4 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.375, allocations: 89.27 kB / 435.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.3751, allocations: 45.56 kB / 435.5 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.3751, allocations: 4 kB / 435.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.3752, allocations: 30.56 kB / 435.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.3752, allocations: 3.938 kB / 435.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003634/0.3755, allocations: 117.5 kB / 435.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.124e-05/0.3756, allocations: 89.09 kB / 435.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.3757, allocations: 124.9 kB / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.3758, allocations: 29.7 kB / 435.9 MB, free: 2.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.417e-05/0.3758, allocations: 88.14 kB / 436 MB, free: 2.473 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.3759, allocations: 11.94 kB / 436 MB, free: 2.461 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.627e-05/0.3759, allocations: 21.84 kB / 436 MB, free: 2.434 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.3761, allocations: 322.8 kB / 436.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.3e-05/0.3761, allocations: 12 kB / 436.3 MB, free: 2.098 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.389e-05/0.3762, allocations: 65.92 kB / 436.4 MB, free: 2.012 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.3764, allocations: 73.94 kB / 436.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3764, allocations: 0 / 436.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001964/0.3766, allocations: 109.4 kB / 436.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.3766, allocations: 8 kB / 436.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3766, allocations: 0 / 436.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.3766, allocations: 4.25 kB / 436.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.261e-05/0.3767, allocations: 19.98 kB / 436.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.3767, allocations: 4 kB / 436.6 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.163e-05/0.3768, allocations: 7.938 kB / 436.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.3768, allocations: 8.219 kB / 436.6 MB, free: 1.754 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 0.0001215/0.3769, allocations: 117.8 kB / 436.8 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.3771, allocations: 77.56 kB / 436.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.147e-05/0.3771, allocations: 12.38 kB / 436.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3771, allocations: 0 / 436.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.3771, allocations: 4 kB / 436.8 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.3771, allocations: 3.984 kB / 436.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.3773, allocations: 152.6 kB / 437 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3773, allocations: 192 / 437 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.275e-05/0.3774, allocations: 12 kB / 437 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.3774, allocations: 11.88 kB / 437 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.3774, allocations: 3.984 kB / 437 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.3774, allocations: 3.938 kB / 437 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3774, allocations: 0 / 437 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.3777, allocations: 121.9 kB / 437.1 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.931e-05/0.3777, allocations: 15.94 kB / 437.2 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.3777, allocations: 8 kB / 437.2 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.04e-05/0.3778, allocations: 7.984 kB / 437.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.44e-05/0.3778, allocations: 0 / 437.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.3779, allocations: 4 kB / 437.2 MB, free: 1.125 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.601e-05/0.3779, allocations: 99.27 kB / 437.3 MB, free: 1.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3779, allocations: 0 / 437.3 MB, free: 1.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.3782, allocations: 8 kB / 437.3 MB, free: 1.02 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.0007537/0.3789, allocations: 0.6951 MB / 438 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002059/0.3791, allocations: 55.91 kB / 438 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3791, allocations: 0.5 kB / 438 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.385e-05/0.3792, allocations: 19.92 kB / 438.1 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007653/0.3799, allocations: 0.721 MB / 438.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.3817, allocations: 1.42 MB / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.382, allocations: 0.6924 MB / 440.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.448e-05/0.382, allocations: 7.984 kB / 440.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.572e-05/0.3821, allocations: 15.44 kB / 440.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3821, allocations: 4 kB / 440.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.4046, allocations: 2.158 MB / 443.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.28, allocations: 0 / 443.1 MB, free: 11.15 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.814079772972036] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 11.441325974999927 11.468302834 11.089713495 Calling exit ...