Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 202.4 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 227.2 MB / 245 MB, free: 7.559 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000845/0.000845, allocations: 114.7 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002111/0.0002111, allocations: 8 kB / 358 MB, free: 9.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2123, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09532/0.3077, allocations: 76.88 MB / 486.4 MB, free: 13.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.308, allocations: 76.95 kB / 486.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002115/0.3102, allocations: 0.778 MB / 487.2 MB, free: 12.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.919e-06/0.3102, allocations: 4.688 kB / 487.2 MB, free: 12.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.3102, allocations: 0 / 487.2 MB, free: 12.87 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003566/0.3106, allocations: 341 kB / 487.6 MB, free: 12.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.3106, allocations: 12.03 kB / 487.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.767e-05/0.3107, allocations: 38.5 kB / 487.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.375e-05/0.3107, allocations: 3.5 kB / 487.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.3109, allocations: 178.9 kB / 487.8 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.3109, allocations: 0 / 487.8 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.476e-05/0.3109, allocations: 11.95 kB / 487.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003369/0.3113, allocations: 119.3 kB / 487.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.3113, allocations: 3.938 kB / 487.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.272e-05/0.3113, allocations: 6.5 kB / 487.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3113, allocations: 0 / 487.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.3114, allocations: 19.98 kB / 488 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001427/0.3116, allocations: 165.6 kB / 488.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.3118, allocations: 58.48 kB / 488.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/0.3118, allocations: 0 / 488.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.3118, allocations: 42.55 kB / 488.2 MB, free: 11.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.3118, allocations: 0 / 488.2 MB, free: 11.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002698/0.3121, allocations: 81.73 kB / 488.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/0.3122, allocations: 51.41 kB / 488.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.468e-05/0.3122, allocations: 101 kB / 488.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.3123, allocations: 25.7 kB / 488.5 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.766e-05/0.3123, allocations: 88.14 kB / 488.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.3123, allocations: 7.906 kB / 488.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-06/0.3124, allocations: 0 / 488.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3125, allocations: 314.8 kB / 488.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.606e-05/0.3125, allocations: 8 kB / 488.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.893e-05/0.3125, allocations: 27.44 kB / 488.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.298e-05/0.3126, allocations: 8 kB / 488.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3126, allocations: 4 kB / 488.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.016e-05/0.3127, allocations: 61.56 kB / 489 MB, free: 10.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.3127, allocations: 8 kB / 489 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3127, allocations: 0 / 489 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.3127, allocations: 3.953 kB / 489 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.484e-05/0.3128, allocations: 12.11 kB / 489 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3128, allocations: 4 kB / 489 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.298e-05/0.3128, allocations: 8.312 kB / 489 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-06/0.3128, allocations: 0 / 489 MB, free: 10.86 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (step.counter,$CLKPRE.step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.385e-05/0.3129, allocations: 117.8 kB / 489.1 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001537/0.3131, allocations: 73.45 kB / 489.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.571e-05/0.3131, allocations: 7.906 kB / 489.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.3131, allocations: 3.953 kB / 489.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3131, allocations: 0 / 489.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.3131, allocations: 3.984 kB / 489.2 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.403e-05/0.3132, allocations: 157.7 kB / 489.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3132, allocations: 7.938 kB / 489.4 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.875e-05/0.3133, allocations: 11.98 kB / 489.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.3133, allocations: 0 / 489.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.3133, allocations: 0 / 489.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3133, allocations: 0 / 489.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3133, allocations: 3.953 kB / 489.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001671/0.3135, allocations: 93.05 kB / 489.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.3136, allocations: 89 kB / 489.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.3136, allocations: 0 / 489.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.297e-05/0.3136, allocations: 8 kB / 489.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.816e-06/0.3136, allocations: 0 / 489.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-06/0.3136, allocations: 288 / 489.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.248e-05/0.3137, allocations: 91.22 kB / 489.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3137, allocations: 0 / 489.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001913/0.3139, allocations: 8 kB / 489.7 MB, free: 10.09 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005167/0.3144, allocations: 0.6435 MB / 490.3 MB, free: 9.418 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001123/0.3145, allocations: 35.91 kB / 490.4 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3145, allocations: 0 / 490.4 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.3145, allocations: 0 / 490.4 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.3148, allocations: 34.16 kB / 490.4 MB, free: 9.352 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007633/0.3156, allocations: 0.8448 MB / 491.2 MB, free: 8.441 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002147/0.3158, allocations: 0.6809 MB / 491.9 MB, free: 7.734 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.076e-05/0.3158, allocations: 3.984 kB / 491.9 MB, free: 7.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.732e-05/0.3159, allocations: 15.44 kB / 491.9 MB, free: 7.715 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3159, allocations: 0 / 491.9 MB, free: 7.715 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/0.3277, allocations: 1.128 MB / 493.1 MB, free: 6.738 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000237/0.328, allocations: 206.5 kB / 493.3 MB, free: 6.488 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.481/1.809, allocations: 0 / 493.3 MB, free: 6.488 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat does not exist to compare? outputFormat=mat