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.000906/0.0009065, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 221.5 MB / 230.3 MB, free: 7.551 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.0008821/0.0008821, allocations: 85.61 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.151e-05/2.153e-05, allocations: 7.938 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1065, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3302/0.4367, allocations: 75.88 MB / 463.4 MB, free: 2.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.437, allocations: 77.64 kB / 463.5 MB, free: 2.836 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003283/0.4403, allocations: 1.299 MB / 464.8 MB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4404, allocations: 0 / 464.8 MB, free: 1.539 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.4404, allocations: 8 kB / 464.8 MB, free: 1.531 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000304/0.4407, allocations: 359.1 kB / 465.2 MB, free: 1.137 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.4407, allocations: 8.031 kB / 465.2 MB, free: 1.129 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.073e-05/0.4408, allocations: 15.61 kB / 465.2 MB, free: 1.117 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001858/0.441, allocations: 186.9 kB / 465.4 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.441, allocations: 4 kB / 465.4 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.441, allocations: 4 kB / 465.4 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.425e-05/0.4411, allocations: 27.91 kB / 465.4 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002184/0.4413, allocations: 127.3 kB / 465.5 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.4413, allocations: 0 / 465.5 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.4414, allocations: 3.953 kB / 465.5 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.566e-06/0.4414, allocations: 3.938 kB / 465.5 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000161/0.4415, allocations: 150.1 kB / 465.7 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.4417, allocations: 66.66 kB / 465.8 MB, free: 468 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.473e-05/0.4417, allocations: 44.89 kB / 465.8 MB, free: 420 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.4418, allocations: 0 / 465.8 MB, free: 420 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.4418, allocations: 30.56 kB / 465.8 MB, free: 380 kB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.4418, allocations: 4 kB / 465.8 MB, free: 376 kB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001586/0.442, allocations: 73.73 kB / 465.9 MB, free: 296 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.442, allocations: 59.39 kB / 466 MB, free: 224 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.895e-05/0.4421, allocations: 122.6 kB / 466.1 MB, free: 92 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.4421, allocations: 29.7 kB / 466.1 MB, free: 56 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.685e-05/0.4422, allocations: 92.08 kB / 466.2 MB, free: 15.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.176e-05/0.4422, allocations: 4.734 kB / 466.2 MB, free: 15.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-06/0.4422, allocations: 0 / 466.2 MB, free: 15.96 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.712e-05/0.4423, allocations: 322.8 kB / 466.5 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.494e-05/0.4423, allocations: 4 kB / 466.5 MB, free: 15.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.375e-05/0.4424, allocations: 66.8 kB / 466.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.876e-05/0.4424, allocations: 8 kB / 466.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.4425, allocations: 0 / 466.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001134/0.4426, allocations: 93.39 kB / 466.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.4426, allocations: 5.406 kB / 466.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.4426, allocations: 4 kB / 466.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.4426, allocations: 4 kB / 466.7 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.121e-05/0.4427, allocations: 12 kB / 466.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.4427, allocations: 3.984 kB / 466.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.423e-05/0.4428, allocations: 11.84 kB / 466.7 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.4428, allocations: 4 kB / 466.7 MB, free: 15.39 MB / 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 () * 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 7.783e-05/0.4429, allocations: 123 kB / 466.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.377e-05/0.443, allocations: 69.59 kB / 466.9 MB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.177e-05/0.443, allocations: 7.906 kB / 466.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.362e-05/0.443, allocations: 16.61 kB / 467 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.443, allocations: 0 / 467 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.443, allocations: 0 / 467 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.443, allocations: 3.953 kB / 467 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.193e-05/0.4431, allocations: 146.2 kB / 467.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.4431, allocations: 4 kB / 467.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.621e-05/0.4432, allocations: 19.92 kB / 467.1 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.4432, allocations: 0 / 467.1 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.4432, allocations: 4 kB / 467.1 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.4433, allocations: 4 kB / 467.1 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4433, allocations: 0 / 467.1 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.4434, allocations: 101 kB / 467.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.593e-05/0.4435, allocations: 100.9 kB / 467.3 MB, free: 14.72 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.4435, allocations: 0 / 467.3 MB, free: 14.72 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.202e-05/0.4435, allocations: 4 kB / 467.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.194e-06/0.4435, allocations: 0 / 467.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.4435, allocations: 4 kB / 467.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.747e-05/0.4436, allocations: 105.1 kB / 467.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4436, allocations: 0 / 467.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002086/0.4438, allocations: 4 kB / 467.4 MB, free: 14.61 MB / 346.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 () * 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.0004436/0.4443, allocations: 0.6805 MB / 468.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.116e-05/0.4444, allocations: 35.94 kB / 468.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4444, allocations: 4 kB / 468.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.91e-07/0.4444, allocations: 0 / 468.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.4446, allocations: 40.08 kB / 468.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003563/0.445, allocations: 160.7 kB / 468.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.4452, allocations: 0.7002 MB / 469.1 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.184e-05/0.4453, allocations: 4.672 kB / 469.1 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.813e-05/0.4453, allocations: 19.44 kB / 469.1 MB, free: 12.88 MB / 346.7 MB Notification: Performance of SimCode: time 2.475e-06/0.4453, allocations: 0 / 469.1 MB, free: 12.88 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02086/0.4662, allocations: 1.231 MB / 470.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002668/0.4665, allocations: 155.5 kB / 470.5 MB, free: 11.47 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.526/1.993, allocations: 3 kB / 470.5 MB, free: 11.47 MB / 346.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