Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",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.001344/0.001344, allocations: 181.9 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.427/1.427, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.001455/0.001455, allocations: 92.06 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.0003482, allocations: 11.94 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3189, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.4298, allocations: 76.62 MB / 478.2 MB, free: 3.867 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.4302, allocations: 79.94 kB / 478.3 MB, free: 3.789 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003904/0.4341, allocations: 1.305 MB / 479.6 MB, free: 2.488 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4342, allocations: 0.9062 kB / 479.6 MB, free: 2.488 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.4342, allocations: 8 kB / 479.6 MB, free: 2.48 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004492/0.4346, allocations: 370.3 kB / 480 MB, free: 2.074 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.4347, allocations: 8.031 kB / 480 MB, free: 2.066 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.304e-05/0.4347, allocations: 34.56 kB / 480 MB, free: 2.023 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.363e-05/0.4348, allocations: 23.7 kB / 480 MB, free: 2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002299/0.435, allocations: 185.6 kB / 480.2 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.4351, allocations: 7.938 kB / 480.2 MB, free: 1.773 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.4351, allocations: 4 kB / 480.2 MB, free: 1.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003538/0.4354, allocations: 141.7 kB / 480.3 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.4355, allocations: 0 / 480.3 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.4355, allocations: 3.953 kB / 480.4 MB, free: 1.617 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.4355, allocations: 4.5 kB / 480.4 MB, free: 1.613 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.786e-05/0.4356, allocations: 27.97 kB / 480.4 MB, free: 1.586 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001908/0.4358, allocations: 173.6 kB / 480.6 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000157/0.4359, allocations: 74.69 kB / 480.6 MB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.4359, allocations: 0 / 480.6 MB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.436, allocations: 30.56 kB / 480.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 4.959e-06/0.436, allocations: 8 kB / 480.7 MB, free: 1.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002329/0.4362, allocations: 105.6 kB / 480.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/0.4363, allocations: 63.36 kB / 480.8 MB, free: 1.055 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.4364, allocations: 125.1 kB / 480.9 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.4365, allocations: 33.7 kB / 481 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.345e-05/0.4365, allocations: 88.08 kB / 481.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.4365, allocations: 3.984 kB / 481.1 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-06/0.4366, allocations: 4 kB / 481.1 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4367, allocations: 318.8 kB / 481.4 MB, free: 476 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.913e-05/0.4367, allocations: 11.98 kB / 481.4 MB, free: 464 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.996e-05/0.4368, allocations: 54.88 kB / 481.5 MB, free: 384 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.035e-05/0.4368, allocations: 19.98 kB / 481.5 MB, free: 364 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4368, allocations: 3.938 kB / 481.5 MB, free: 360 kB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001488/0.437, allocations: 89.47 kB / 481.6 MB, free: 264 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.437, allocations: 4 kB / 481.6 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.437, allocations: 4.25 kB / 481.6 MB, free: 256 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.4371, allocations: 11.98 kB / 481.6 MB, free: 244 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.701e-05/0.4371, allocations: 15.94 kB / 481.6 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.4372, allocations: 320 / 481.6 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.75e-05/0.4372, allocations: 11.95 kB / 481.6 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.4372, allocations: 4 kB / 481.6 MB, free: 212 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 0.000109/0.4373, allocations: 123.7 kB / 481.7 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.4375, allocations: 89.56 kB / 481.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.04e-05/0.4375, allocations: 12.66 kB / 481.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.4376, allocations: 8 kB / 481.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.4376, allocations: 3.938 kB / 481.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.4376, allocations: 0 / 481.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001374/0.4377, allocations: 173.6 kB / 482 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.4377, allocations: 0 / 482 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.142e-05/0.4378, allocations: 15.98 kB / 482 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.4378, allocations: 0 / 482 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.4378, allocations: 0 / 482 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.4378, allocations: 4 kB / 482 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4378, allocations: 0 / 482 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.438, allocations: 124.9 kB / 482.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.426e-05/0.4381, allocations: 89 kB / 482.2 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.4381, allocations: 8 kB / 482.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.293e-05/0.4381, allocations: 192 / 482.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.835e-06/0.4382, allocations: 0 / 482.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-06/0.4382, allocations: 3.938 kB / 482.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.702e-05/0.4383, allocations: 113.7 kB / 482.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4383, allocations: 0 / 482.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002069/0.4385, allocations: 12 kB / 482.4 MB, free: 15.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0005459/0.439, allocations: 0.6787 MB / 483.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001306/0.4392, allocations: 48.3 kB / 483.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.4392, allocations: 4.125 kB / 483.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.4392, allocations: 0 / 483.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.4395, allocations: 50.86 kB / 483.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.441, allocations: 1.574 MB / 484.7 MB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.4413, allocations: 0.7098 MB / 485.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.837e-05/0.4414, allocations: 0.6719 kB / 485.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.672e-05/0.4414, allocations: 27.48 kB / 485.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4414, allocations: 0 / 485.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01495/0.4564, allocations: 1.542 MB / 487 MB, free: 10.73 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002611/0.4567, allocations: 196.2 kB / 487.2 MB, free: 10.49 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.59/2.047, allocations: 0 / 487.2 MB, free: 10.49 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat