Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001695/0.001695, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001062, allocations: 91.45 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.524e-05/3.526e-05, allocations: 7.938 kB / 350.7 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.09195, allocations: 51.47 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2897/0.3817, allocations: 77.65 MB / 479.8 MB, free: 11.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/0.382, allocations: 83.12 kB / 479.8 MB, free: 11.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003726/0.3857, allocations: 1.512 MB / 481.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3857, allocations: 0 / 481.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3858, allocations: 4 kB / 481.4 MB, free: 10.41 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000269/0.386, allocations: 349.4 kB / 481.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.3861, allocations: 12.03 kB / 481.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.881e-05/0.3861, allocations: 36.55 kB / 481.8 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.3862, allocations: 19.28 kB / 481.8 MB, free: 9.969 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.3864, allocations: 191.9 kB / 482 MB, free: 9.746 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.3864, allocations: 0 / 482 MB, free: 9.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.3864, allocations: 4.562 kB / 482 MB, free: 9.742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.3866, allocations: 87.47 kB / 482.1 MB, free: 9.656 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3866, allocations: 3.938 kB / 482.1 MB, free: 9.652 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.3866, allocations: 4 kB / 482.1 MB, free: 9.648 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3866, allocations: 0 / 482.1 MB, free: 9.648 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.102e-05/0.3867, allocations: 7.75 kB / 482.1 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002679/0.3869, allocations: 268 kB / 482.3 MB, free: 9.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.86e-05/0.387, allocations: 53.3 kB / 482.4 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.359e-05/0.387, allocations: 11.41 kB / 482.4 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.3871, allocations: 4.062 kB / 482.4 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.758e-05/0.3871, allocations: 33.75 kB / 482.4 MB, free: 9.215 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.3871, allocations: 0 / 482.4 MB, free: 9.215 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001498/0.3873, allocations: 53.61 kB / 482.5 MB, free: 9.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.3873, allocations: 81.17 kB / 482.6 MB, free: 9.062 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.025e-05/0.3874, allocations: 124.2 kB / 482.7 MB, free: 8.941 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.788e-06/0.3874, allocations: 25.7 kB / 482.7 MB, free: 8.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.714e-05/0.3874, allocations: 87.27 kB / 482.8 MB, free: 8.824 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.318e-05/0.3875, allocations: 7.344 kB / 482.8 MB, free: 8.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-06/0.3875, allocations: 4 kB / 482.8 MB, free: 8.816 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.281e-05/0.3875, allocations: 314.8 kB / 483.1 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.398e-05/0.3875, allocations: 7.25 kB / 483.1 MB, free: 8.496 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.457e-05/0.3875, allocations: 17.72 kB / 483.1 MB, free: 8.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.92e-05/0.3876, allocations: 7.312 kB / 483.1 MB, free: 8.469 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3876, allocations: 3.953 kB / 483.1 MB, free: 8.465 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.361e-05/0.3876, allocations: 48.94 kB / 483.2 MB, free: 8.414 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.3877, allocations: 5.719 kB / 483.2 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.3877, allocations: 6.25 kB / 483.2 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.3877, allocations: 8.062 kB / 483.2 MB, free: 8.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.458e-05/0.3878, allocations: 4.625 kB / 483.2 MB, free: 8.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3878, allocations: 3.984 kB / 483.2 MB, free: 8.391 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.377e-05/0.3878, allocations: 4 kB / 483.2 MB, free: 8.387 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.3878, allocations: 1.172 kB / 483.2 MB, free: 8.387 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 3.822e-05/0.3879, allocations: 105 kB / 483.3 MB, free: 8.277 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.948e-05/0.3879, allocations: 37.56 kB / 483.4 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.288e-05/0.388, allocations: 15.7 kB / 483.4 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.388, allocations: 4.781 kB / 483.4 MB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.388, allocations: 4 kB / 483.4 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.388, allocations: 0 / 483.4 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001212/0.3881, allocations: 164.2 kB / 483.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3881, allocations: 0 / 483.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.426e-05/0.3882, allocations: 16.39 kB / 483.6 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3882, allocations: 0 / 483.6 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.3882, allocations: 0 / 483.6 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.3882, allocations: 0.875 kB / 483.6 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3882, allocations: 0 / 483.6 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.346e-05/0.3883, allocations: 174.6 kB / 483.7 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.3884, allocations: 89 kB / 483.8 MB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.3884, allocations: 2.5 kB / 483.8 MB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.801e-05/0.3885, allocations: 7.984 kB / 483.8 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.768e-05/0.3885, allocations: 0 / 483.8 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.3885, allocations: 5.719 kB / 483.8 MB, free: 7.699 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.02e-05/0.3886, allocations: 109.9 kB / 483.9 MB, free: 7.602 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3886, allocations: 0 / 483.9 MB, free: 7.602 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000226/0.3888, allocations: 4 kB / 484 MB, free: 7.598 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002686/0.3891, allocations: 0.7665 MB / 484.7 MB, free: 6.805 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.842e-05/0.3892, allocations: 15.44 kB / 484.7 MB, free: 6.793 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3892, allocations: 0 / 484.7 MB, free: 6.793 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.507e-05/0.3892, allocations: 7.25 kB / 484.7 MB, free: 6.789 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.3894, allocations: 12.3 kB / 484.8 MB, free: 6.781 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003227/0.3898, allocations: 133.7 kB / 484.9 MB, free: 6.621 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001126/0.3899, allocations: 0.6965 MB / 485.6 MB, free: 5.898 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.284e-05/0.3899, allocations: 0 / 485.6 MB, free: 5.898 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.372e-05/0.39, allocations: 11 kB / 485.6 MB, free: 5.891 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.39, allocations: 0 / 485.6 MB, free: 5.891 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01063/0.4006, allocations: 1.201 MB / 486.8 MB, free: 4.914 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001185/0.4008, allocations: 170.5 kB / 487 MB, free: 4.688 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/2.004, allocations: 0 / 487 MB, free: 4.688 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat