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.001096/0.001097, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.339/1.339, allocations: 221.3 MB / 235.5 MB, free: 2.902 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008398/0.0008398, allocations: 96.72 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.09e-05/3.113e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.09008, allocations: 50.42 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2818/0.372, allocations: 76.27 MB / 470.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001776/0.3722, allocations: 71.95 kB / 470.7 MB, free: 11.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002429/0.3746, allocations: 1.107 MB / 471.8 MB, free: 10.03 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3746, allocations: 0 / 471.8 MB, free: 10.03 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.3746, allocations: 4 kB / 471.8 MB, free: 10.02 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.000294/0.3749, allocations: 347.1 kB / 472.1 MB, free: 9.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.375, allocations: 8.031 kB / 472.2 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.205e-05/0.375, allocations: 34.56 kB / 472.2 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.365e-05/0.3751, allocations: 11.86 kB / 472.2 MB, free: 9.578 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.3752, allocations: 176.5 kB / 472.4 MB, free: 9.367 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.3753, allocations: 0 / 472.4 MB, free: 9.367 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.3753, allocations: 3.938 kB / 472.4 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001713/0.3754, allocations: 89.06 kB / 472.5 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.3755, allocations: 0 / 472.5 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.3755, allocations: 0 / 472.5 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.3755, allocations: 11.88 kB / 472.5 MB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.593e-05/0.3755, allocations: 11.94 kB / 472.5 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002874/0.3758, allocations: 269.7 kB / 472.7 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.683e-05/0.3759, allocations: 37.22 kB / 472.8 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.18e-05/0.3759, allocations: 13.66 kB / 472.8 MB, free: 8.844 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3759, allocations: 8.047 kB / 472.8 MB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.376, allocations: 38.55 kB / 472.8 MB, free: 8.789 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.183e-06/0.376, allocations: 0 / 472.8 MB, free: 8.789 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001209/0.3761, allocations: 49.59 kB / 472.9 MB, free: 8.734 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.3762, allocations: 77.11 kB / 473 MB, free: 8.641 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.022e-05/0.3762, allocations: 123.8 kB / 473.1 MB, free: 8.512 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.3763, allocations: 29.69 kB / 473.1 MB, free: 8.477 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.046e-05/0.3763, allocations: 88.11 kB / 473.2 MB, free: 8.387 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.326e-06/0.3763, allocations: 8 kB / 473.2 MB, free: 8.379 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.3763, allocations: 0 / 473.2 MB, free: 8.379 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.099e-05/0.3764, allocations: 310.8 kB / 473.5 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.067e-06/0.3764, allocations: 0 / 473.5 MB, free: 8.066 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.605e-05/0.3765, allocations: 18.88 kB / 473.5 MB, free: 8.043 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.346e-05/0.3765, allocations: 4 kB / 473.5 MB, free: 8.039 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.3765, allocations: 4.062 kB / 473.5 MB, free: 8.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.862e-05/0.3766, allocations: 45.62 kB / 473.6 MB, free: 7.984 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.3766, allocations: 8 kB / 473.6 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.3766, allocations: 0 / 473.6 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.3766, allocations: 3.953 kB / 473.6 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.598e-05/0.3767, allocations: 4 kB / 473.6 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/0.3767, allocations: 7.938 kB / 473.6 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.871e-05/0.3767, allocations: 3.984 kB / 473.6 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.77e-06/0.3767, allocations: 8.062 kB / 473.6 MB, free: 7.949 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 () * 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 4.627e-05/0.3768, allocations: 101 kB / 473.7 MB, free: 7.844 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.848e-05/0.3768, allocations: 41.55 kB / 473.8 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.679e-05/0.3769, allocations: 11.64 kB / 473.8 MB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3769, allocations: 7.953 kB / 473.8 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3769, allocations: 0 / 473.8 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.3769, allocations: 0 / 473.8 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001502/0.3771, allocations: 157.7 kB / 473.9 MB, free: 7.578 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3771, allocations: 0 / 473.9 MB, free: 7.578 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.078e-05/0.3771, allocations: 16.02 kB / 473.9 MB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3771, allocations: 3.984 kB / 473.9 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.3772, allocations: 4 kB / 474 MB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.3772, allocations: 0 / 474 MB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3772, allocations: 3.953 kB / 474 MB, free: 7.551 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000106/0.3773, allocations: 162 kB / 474.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.838e-05/0.3773, allocations: 92.95 kB / 474.2 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.3774, allocations: 7.984 kB / 474.2 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.203e-05/0.3774, allocations: 7.953 kB / 474.2 MB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.215e-05/0.3775, allocations: 0 / 474.2 MB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.3775, allocations: 0 / 474.2 MB, free: 7.242 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.747e-05/0.3775, allocations: 105.8 kB / 474.3 MB, free: 7.141 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3775, allocations: 0 / 474.3 MB, free: 7.141 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001923/0.3777, allocations: 4 kB / 474.3 MB, free: 7.137 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: 2 (sample1.u,sample1.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.0003333/0.3781, allocations: 0.7564 MB / 475.1 MB, free: 6.348 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.415e-05/0.3781, allocations: 8 kB / 475.1 MB, free: 6.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3781, allocations: 4.156 kB / 475.1 MB, free: 6.336 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.389e-05/0.3782, allocations: 8 kB / 475.1 MB, free: 6.328 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.3783, allocations: 23.84 kB / 475.1 MB, free: 6.305 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002957/0.3787, allocations: 119.3 kB / 475.2 MB, free: 6.152 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.3789, allocations: 0.6887 MB / 475.9 MB, free: 5.438 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.856e-05/0.3789, allocations: 0 / 475.9 MB, free: 5.438 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.113e-05/0.379, allocations: 15.44 kB / 475.9 MB, free: 5.422 MB / 346.7 MB Notification: Performance of SimCode: time 3.2e-07/0.379, allocations: 4.156 kB / 476 MB, free: 5.418 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01083/0.3898, allocations: 1.137 MB / 477.1 MB, free: 4.418 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/0.3901, allocations: 166.4 kB / 477.3 MB, free: 4.199 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.428/1.819, allocations: 5.406 kB / 477.3 MB, free: 4.195 MB / 346.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