Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",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.0009871/0.000987, 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.316/1.316, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.0008963/0.0008964, allocations: 84.73 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002803/0.0002804, allocations: 8 kB / 351.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2957, allocations: 50.4 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1094/0.4052, allocations: 76.34 MB / 477.9 MB, free: 4.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003284/0.4056, allocations: 75.95 kB / 478 MB, free: 4.016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003154/0.4087, allocations: 1.102 MB / 479.1 MB, free: 2.914 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.4087, allocations: 3.938 kB / 479.1 MB, free: 2.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.4088, allocations: 4 kB / 479.1 MB, free: 2.906 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.0003899/0.4092, allocations: 352.4 kB / 479.5 MB, free: 2.516 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.4092, allocations: 12.03 kB / 479.5 MB, free: 2.504 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.578e-05/0.4093, allocations: 36.72 kB / 479.5 MB, free: 2.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.032e-05/0.4093, allocations: 15.86 kB / 479.5 MB, free: 2.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.4095, allocations: 182.8 kB / 479.7 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.4095, allocations: 7.984 kB / 479.7 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.035e-06/0.4095, allocations: 0 / 479.7 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002343/0.4098, allocations: 88.36 kB / 479.8 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.4098, allocations: 3.938 kB / 479.8 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.4098, allocations: 0 / 479.8 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.4098, allocations: 3.953 kB / 479.8 MB, free: 2.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.557e-05/0.4099, allocations: 26.3 kB / 479.8 MB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003348/0.4103, allocations: 262.5 kB / 480.1 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.53e-05/0.4103, allocations: 45.14 kB / 480.1 MB, free: 1.715 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.4104, allocations: 3.984 kB / 480.1 MB, free: 1.711 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.4104, allocations: 30.56 kB / 480.2 MB, free: 1.672 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.4104, allocations: 0 / 480.2 MB, free: 1.672 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002312/0.4106, allocations: 85.53 kB / 480.2 MB, free: 1.582 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.4107, allocations: 77.11 kB / 480.3 MB, free: 1.488 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.4108, allocations: 123.1 kB / 480.4 MB, free: 1.359 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.4108, allocations: 25.7 kB / 480.5 MB, free: 1.328 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.295e-05/0.4109, allocations: 88.33 kB / 480.5 MB, free: 1.238 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.444e-06/0.4109, allocations: 7.938 kB / 480.6 MB, free: 1.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.4109, allocations: 0 / 480.6 MB, free: 1.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.411, allocations: 318.8 kB / 480.9 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.647e-05/0.4111, allocations: 7.984 kB / 480.9 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.393e-05/0.4111, allocations: 17.72 kB / 480.9 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.176e-05/0.4112, allocations: 16.05 kB / 480.9 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4112, allocations: 0 / 480.9 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.865e-05/0.4113, allocations: 57.62 kB / 481 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.4113, allocations: 4 kB / 481 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.4113, allocations: 0 / 481 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.4113, allocations: 3.953 kB / 481 MB, free: 0.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.268e-05/0.4114, allocations: 16.05 kB / 481 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.4114, allocations: 0 / 481 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.917e-05/0.4114, allocations: 7.906 kB / 481 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.4115, allocations: 0 / 481 MB, free: 0.7695 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: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked 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 8.722e-05/0.4116, allocations: 113.8 kB / 481.1 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.489e-05/0.4116, allocations: 37.69 kB / 481.1 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.93e-05/0.4116, allocations: 11.86 kB / 481.2 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.4117, allocations: 7.938 kB / 481.2 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4117, allocations: 7.984 kB / 481.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4117, allocations: 0 / 481.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.4118, allocations: 169.6 kB / 481.3 MB, free: 372 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4118, allocations: 0 / 481.3 MB, free: 372 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-05/0.4119, allocations: 8 kB / 481.3 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.4119, allocations: 0 / 481.3 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.4119, allocations: 0 / 481.3 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.4119, allocations: 0 / 481.3 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4119, allocations: 0 / 481.3 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.4121, allocations: 178 kB / 481.5 MB, free: 160 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.336e-05/0.4121, allocations: 96.94 kB / 481.6 MB, free: 44 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.4122, allocations: 4 kB / 481.6 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.648e-05/0.4122, allocations: 4 kB / 481.6 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.727e-05/0.4123, allocations: 7.984 kB / 481.6 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.4123, allocations: 0 / 481.6 MB, free: 28 kB / 346.7 MB Notification: Performance of sorting global known variables: time 7.359e-05/0.4123, allocations: 111.2 kB / 481.7 MB, free: 15.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4123, allocations: 0 / 481.7 MB, free: 15.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000198/0.4126, allocations: 4 kB / 481.7 MB, free: 15.91 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: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked 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.0004047/0.413, allocations: 0.7681 MB / 482.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.4131, allocations: 23.94 kB / 482.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4131, allocations: 160 / 482.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.461e-05/0.4131, allocations: 15.98 kB / 482.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.4134, allocations: 22.89 kB / 482.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007201/0.4141, allocations: 0.5763 MB / 483.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.4144, allocations: 0.6887 MB / 483.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.171e-05/0.4144, allocations: 4 kB / 483.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.639e-05/0.4144, allocations: 15.42 kB / 483.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of SimCode: time 4.5e-07/0.4144, allocations: 96 / 483.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01255/0.427, allocations: 1.136 MB / 485 MB, free: 12.73 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/0.4272, allocations: 204.2 kB / 485.2 MB, free: 12.49 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.474/1.902, allocations: 3.938 kB / 485.2 MB, free: 12.48 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat