Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009296/0.0009296, allocations: 87.58 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002409/0.000241, allocations: 12 kB / 351.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2216, allocations: 50.4 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08584/0.3075, allocations: 76.51 MB / 478.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.3078, allocations: 75.95 kB / 478.2 MB, free: 3.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002843/0.3106, allocations: 1.161 MB / 479.3 MB, free: 2.688 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3106, allocations: 0 / 479.3 MB, free: 2.688 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.3107, allocations: 4 kB / 479.3 MB, free: 2.684 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003572/0.311, allocations: 353.1 kB / 479.7 MB, free: 2.293 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3111, allocations: 15.97 kB / 479.7 MB, free: 2.277 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.097e-05/0.3111, allocations: 38.55 kB / 479.7 MB, free: 2.23 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.67e-05/0.3111, allocations: 11.86 kB / 479.7 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.3113, allocations: 190.9 kB / 479.9 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-06/0.3114, allocations: 0 / 479.9 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.3114, allocations: 4 kB / 479.9 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002635/0.3117, allocations: 120.9 kB / 480.1 MB, free: 1.852 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-06/0.3117, allocations: 0 / 480.1 MB, free: 1.852 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.3117, allocations: 4 kB / 480.1 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.3117, allocations: 3.953 kB / 480.1 MB, free: 1.844 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.963e-05/0.3118, allocations: 23.98 kB / 480.1 MB, free: 1.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003338/0.3121, allocations: 261.8 kB / 480.3 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.3123, allocations: 142.3 kB / 480.5 MB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.3124, allocations: 8.062 kB / 480.5 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.3124, allocations: 30.56 kB / 480.5 MB, free: 1.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.3124, allocations: 0 / 480.5 MB, free: 1.289 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002426/0.3126, allocations: 89.47 kB / 480.6 MB, free: 1.195 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.3127, allocations: 81.05 kB / 480.7 MB, free: 1.098 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.3128, allocations: 121.2 kB / 480.8 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.3128, allocations: 25.7 kB / 480.8 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.264e-05/0.3129, allocations: 88.14 kB / 480.9 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.3129, allocations: 12.03 kB / 480.9 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-06/0.3129, allocations: 0 / 480.9 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.313, allocations: 314.8 kB / 481.2 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.875e-05/0.3131, allocations: 11.94 kB / 481.2 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.467e-05/0.3131, allocations: 35.61 kB / 481.3 MB, free: 472 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.52e-05/0.3132, allocations: 19.98 kB / 481.3 MB, free: 452 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3132, allocations: 4 kB / 481.3 MB, free: 448 kB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001197/0.3133, allocations: 65.56 kB / 481.4 MB, free: 376 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.3134, allocations: 4.125 kB / 481.4 MB, free: 372 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3134, allocations: 8 kB / 481.4 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.3134, allocations: 4.047 kB / 481.4 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.61e-05/0.3135, allocations: 11.98 kB / 481.4 MB, free: 348 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.3135, allocations: 0 / 481.4 MB, free: 348 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.431e-05/0.3135, allocations: 7.984 kB / 481.4 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.3135, allocations: 4 kB / 481.4 MB, free: 336 kB / 346.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 9.441e-05/0.3136, allocations: 113.8 kB / 481.5 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.046e-05/0.3137, allocations: 53.53 kB / 481.6 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.512e-05/0.3137, allocations: 16.23 kB / 481.6 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3137, allocations: 4 kB / 481.6 MB, free: 128 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3138, allocations: 3.953 kB / 481.6 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.3138, allocations: 0 / 481.6 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.3139, allocations: 169.6 kB / 481.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.314, allocations: 7.938 kB / 481.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.771e-05/0.314, allocations: 8 kB / 481.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.314, allocations: 0 / 481.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.314, allocations: 0 / 481.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.314, allocations: 0 / 481.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.314, allocations: 4 kB / 481.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.3142, allocations: 189.9 kB / 482 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.3143, allocations: 93 kB / 482.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.3143, allocations: 0 / 482.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.785e-05/0.3144, allocations: 8 kB / 482.1 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.739e-05/0.3144, allocations: 7.938 kB / 482.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.3144, allocations: 4 kB / 482.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.473e-05/0.3145, allocations: 99.27 kB / 482.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3145, allocations: 0 / 482.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002062/0.3147, allocations: 8 kB / 482.2 MB, free: 15.44 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0005218/0.3152, allocations: 0.7759 MB / 483 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.3154, allocations: 40.09 kB / 483 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3154, allocations: 3.938 kB / 483 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.537e-05/0.3155, allocations: 15.94 kB / 483 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.3157, allocations: 26.89 kB / 483 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009111/0.3166, allocations: 0.9111 MB / 484 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.3169, allocations: 0.6926 MB / 484.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.19e-05/0.317, allocations: 7.984 kB / 484.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.819e-05/0.317, allocations: 7.438 kB / 484.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.317, allocations: 0 / 484.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01195/0.329, allocations: 1.226 MB / 485.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002482/0.3293, allocations: 188.3 kB / 486.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.499/1.828, allocations: 3.938 kB / 486.1 MB, free: 11.5 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat does not exist to compare? outputFormat=mat