Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.001459/0.001459, allocations: 179.5 kB / 16.39 MB, free: 5.766 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.394/1.394, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.001002/0.001002, allocations: 87.27 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003469, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2839, allocations: 50.41 MB / 401.6 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09713/0.3811, allocations: 76.32 MB / 477.9 MB, free: 4.031 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/0.3814, allocations: 79.95 kB / 478 MB, free: 3.953 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00267/0.3841, allocations: 1.038 MB / 479 MB, free: 2.914 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3841, allocations: 0 / 479 MB, free: 2.914 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.3841, allocations: 3.875 kB / 479 MB, free: 2.914 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.0003592/0.3845, allocations: 351.2 kB / 479.4 MB, free: 2.523 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3846, allocations: 15.95 kB / 479.4 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.685e-05/0.3846, allocations: 42.56 kB / 479.4 MB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.511e-05/0.3846, allocations: 7.859 kB / 479.4 MB, free: 2.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/0.3849, allocations: 171.1 kB / 479.6 MB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.3849, allocations: 8 kB / 479.6 MB, free: 2.234 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.3849, allocations: 0 / 479.6 MB, free: 2.234 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002247/0.3851, allocations: 87.42 kB / 479.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.3852, allocations: 0 / 479.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.3852, allocations: 0 / 479.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.3852, allocations: 7.953 kB / 479.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.264e-05/0.3853, allocations: 23.92 kB / 479.7 MB, free: 2.102 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003251/0.3856, allocations: 261.7 kB / 480 MB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.101e-05/0.3857, allocations: 41.16 kB / 480 MB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.3857, allocations: 4.062 kB / 480 MB, free: 1.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.3857, allocations: 34.55 kB / 480.1 MB, free: 1.688 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.3857, allocations: 0 / 480.1 MB, free: 1.688 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002147/0.386, allocations: 65.83 kB / 480.1 MB, free: 1.617 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.386, allocations: 81.11 kB / 480.2 MB, free: 1.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.3861, allocations: 118.8 kB / 480.3 MB, free: 1.398 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.3862, allocations: 25.7 kB / 480.3 MB, free: 1.367 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.64e-05/0.3862, allocations: 92.05 kB / 480.4 MB, free: 1.273 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.773e-06/0.3862, allocations: 0 / 480.4 MB, free: 1.273 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-06/0.3862, allocations: 0 / 480.4 MB, free: 1.273 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.3864, allocations: 310.8 kB / 480.7 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.142e-05/0.3864, allocations: 19.92 kB / 480.8 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.901e-05/0.3864, allocations: 17.72 kB / 480.8 MB, free: 0.918 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.165e-05/0.3865, allocations: 7.938 kB / 480.8 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3865, allocations: 0 / 480.8 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.363e-05/0.3866, allocations: 45.69 kB / 480.8 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.3866, allocations: 12.12 kB / 480.8 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3866, allocations: 0 / 480.8 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.3866, allocations: 0 / 480.8 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.554e-05/0.3867, allocations: 3.953 kB / 480.8 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.3867, allocations: 4 kB / 480.8 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.432e-05/0.3867, allocations: 3.938 kB / 480.9 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.3867, allocations: 0 / 480.9 MB, free: 0.8359 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 9.12e-05/0.3868, allocations: 121.8 kB / 481 MB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.454e-05/0.3869, allocations: 33.61 kB / 481 MB, free: 0.668 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.988e-05/0.3869, allocations: 23.53 kB / 481 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3869, allocations: 0 / 481 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3869, allocations: 3.953 kB / 481 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3869, allocations: 3.938 kB / 481 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.3871, allocations: 157.7 kB / 481.2 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3871, allocations: 0 / 481.2 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.38e-06/0.3871, allocations: 4 kB / 481.2 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.3871, allocations: 3.984 kB / 481.2 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.3872, allocations: 0 / 481.2 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3872, allocations: 0 / 481.2 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3872, allocations: 12 kB / 481.2 MB, free: 428 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/0.3873, allocations: 166 kB / 481.4 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.79e-05/0.3874, allocations: 93 kB / 481.5 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.3874, allocations: 0 / 481.5 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.298e-05/0.3875, allocations: 4.031 kB / 481.5 MB, free: 120 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.3875, allocations: 7.953 kB / 481.5 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.3875, allocations: 0 / 481.5 MB, free: 112 kB / 346.7 MB Notification: Performance of sorting global known variables: time 6.438e-05/0.3876, allocations: 106.6 kB / 481.6 MB, free: 8 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3876, allocations: 0 / 481.6 MB, free: 8 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001989/0.3878, allocations: 4 kB / 481.6 MB, free: 4 kB / 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: 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.0004746/0.3883, allocations: 0.768 MB / 482.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.746e-05/0.3884, allocations: 15.98 kB / 482.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3884, allocations: 3.938 kB / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.972e-05/0.3884, allocations: 16.09 kB / 482.4 MB, free: 15.17 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.3887, allocations: 17.75 kB / 482.4 MB, free: 15.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007199/0.3894, allocations: 0.5539 MB / 483 MB, free: 14.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.3897, allocations: 0.6887 MB / 483.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.527e-05/0.3897, allocations: 8 kB / 483.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.934e-05/0.3898, allocations: 15.42 kB / 483.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3898, allocations: 0 / 483.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01211/0.4019, allocations: 1.124 MB / 484.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002326/0.4022, allocations: 196.2 kB / 485 MB, free: 12.61 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.582/1.985, allocations: 0 / 485 MB, free: 12.61 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat