Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002377/0.002377, allocations: 181.7 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.142/2.142, allocations: 205.2 MB / 219 MB, free: 9.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 88.47 kB / 267.1 MB, free: 9.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1428/0.1428, allocations: 12.59 MB / 327.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.547e-05/4.56e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1035, allocations: 50.38 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4661/0.5696, allocations: 77.52 MB / 0.5019 GB, free: 11.97 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.5699, allocations: 74.33 kB / 0.502 GB, free: 11.97 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003191/0.5731, allocations: 0.9914 MB / 0.503 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.5732, allocations: 0 / 0.503 GB, free: 11.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.5732, allocations: 11.78 kB / 0.503 GB, free: 11.62 MB / 330.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.0003179/0.5735, allocations: 333.5 kB / 0.5033 GB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.5736, allocations: 14.02 kB / 0.5033 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.991e-05/0.5736, allocations: 39.12 kB / 0.5034 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.933e-05/0.5737, allocations: 7.75 kB / 0.5034 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/0.5739, allocations: 189.3 kB / 0.5036 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.5739, allocations: 4.953 kB / 0.5036 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.574, allocations: 3.844 kB / 0.5036 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002141/0.5742, allocations: 86.53 kB / 0.5036 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.5742, allocations: 3.938 kB / 0.5037 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.5742, allocations: 2.672 kB / 0.5037 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.5742, allocations: 0 / 0.5037 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.721e-05/0.5743, allocations: 6.156 kB / 0.5037 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003244/0.5746, allocations: 262.9 kB / 0.5039 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.144e-05/0.5747, allocations: 39.58 kB / 0.5039 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.895e-05/0.5747, allocations: 14.34 kB / 0.504 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.5748, allocations: 0 / 0.504 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.5748, allocations: 44.66 kB / 0.504 GB, free: 10.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.272e-06/0.5748, allocations: 0 / 0.504 GB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001552/0.575, allocations: 39.33 kB / 0.504 GB, free: 10.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.575, allocations: 84.89 kB / 0.5041 GB, free: 10.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.5752, allocations: 123.2 kB / 0.5042 GB, free: 10.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.5752, allocations: 28.89 kB / 0.5043 GB, free: 10.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.278e-05/0.5752, allocations: 84.2 kB / 0.5043 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.022e-05/0.5753, allocations: 3.25 kB / 0.5044 GB, free: 10.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-06/0.5753, allocations: 0 / 0.5044 GB, free: 10.21 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.428e-05/0.5753, allocations: 317.4 kB / 0.5047 GB, free: 9.902 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.439e-05/0.5754, allocations: 0 / 0.5047 GB, free: 9.902 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.088e-05/0.5754, allocations: 16.94 kB / 0.5047 GB, free: 9.887 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.012e-05/0.5754, allocations: 7.859 kB / 0.5047 GB, free: 9.883 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.5754, allocations: 4.062 kB / 0.5047 GB, free: 9.879 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001111/0.5756, allocations: 44.25 kB / 0.5047 GB, free: 9.844 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.5756, allocations: 7.688 kB / 0.5047 GB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.5756, allocations: 0 / 0.5047 GB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.5756, allocations: 0 / 0.5047 GB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.73e-05/0.5757, allocations: 0 / 0.5047 GB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.5757, allocations: 3.844 kB / 0.5047 GB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.083e-05/0.5757, allocations: 1.625 kB / 0.5047 GB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.5757, allocations: 0 / 0.5047 GB, free: 9.844 MB / 330.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 (sample.u,sample.y) * 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 5.633e-05/0.5758, allocations: 121.7 kB / 0.5049 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.39e-05/0.5759, allocations: 43.84 kB / 0.5049 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.417e-05/0.5759, allocations: 7.5 kB / 0.5049 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.5759, allocations: 3.984 kB / 0.5049 GB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.576, allocations: 6.516 kB / 0.5049 GB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.576, allocations: 0 / 0.5049 GB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.5761, allocations: 160.5 kB / 0.5051 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5761, allocations: 3.953 kB / 0.5051 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.725e-06/0.5762, allocations: 0 / 0.5051 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.5762, allocations: 10.12 kB / 0.5051 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.5762, allocations: 0 / 0.5051 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5762, allocations: 0 / 0.5051 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5762, allocations: 7.938 kB / 0.5051 GB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.5763, allocations: 162.6 kB / 0.5052 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.174e-05/0.5764, allocations: 87.59 kB / 0.5053 GB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.5764, allocations: 7.844 kB / 0.5053 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.971e-05/0.5765, allocations: 2.438 kB / 0.5053 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.53e-05/0.5766, allocations: 0 / 0.5053 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.5766, allocations: 3.719 kB / 0.5053 GB, free: 9.211 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.801e-05/0.5767, allocations: 103 kB / 0.5054 GB, free: 9.137 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5767, allocations: 0 / 0.5054 GB, free: 9.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002648/0.5769, allocations: 3.719 kB / 0.5054 GB, free: 9.137 MB / 330.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 (sample.u,sample.y) * 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.0003112/0.5773, allocations: 0.7544 MB / 0.5062 GB, free: 8.383 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.627e-05/0.5774, allocations: 14.97 kB / 0.5062 GB, free: 8.379 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.5774, allocations: 0 / 0.5062 GB, free: 8.379 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.817e-05/0.5774, allocations: 3.719 kB / 0.5062 GB, free: 8.379 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.5777, allocations: 17.28 kB / 0.5062 GB, free: 8.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004071/0.5781, allocations: 132.4 kB / 0.5063 GB, free: 8.242 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001679/0.5783, allocations: 0.6866 MB / 0.507 GB, free: 7.547 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.717e-05/0.5783, allocations: 3.844 kB / 0.507 GB, free: 7.547 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.891e-05/0.5784, allocations: 12.91 kB / 0.507 GB, free: 7.539 MB / 330.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5784, allocations: 0 / 0.507 GB, free: 7.539 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.5968, allocations: 1.121 MB / 0.5081 GB, free: 7.25 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002554/0.5971, allocations: 190.2 kB / 0.5083 GB, free: 7.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.417/3.014, allocations: 3.906 kB / 0.5083 GB, free: 7.016 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat