Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",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.00108/0.00108, allocations: 174.8 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.32/1.32, allocations: 221.3 MB / 235.5 MB, free: 2.941 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.0009047/0.0009045, allocations: 95.78 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.76e-05/2.763e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3269/0.4365, allocations: 77.25 MB / 471.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.4368, allocations: 75.95 kB / 471.7 MB, free: 10.17 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004192/0.441, allocations: 1.56 MB / 473.2 MB, free: 8.613 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.441, allocations: 4 kB / 473.2 MB, free: 8.609 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.719e-06/0.441, allocations: 3.938 kB / 473.2 MB, free: 8.605 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003606/0.4414, allocations: 371.1 kB / 473.6 MB, free: 8.199 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.348e-05/0.4415, allocations: 12.03 kB / 473.6 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.941e-05/0.4415, allocations: 34.52 kB / 473.6 MB, free: 8.145 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.349e-05/0.4416, allocations: 7.906 kB / 473.6 MB, free: 8.137 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.4418, allocations: 190.9 kB / 473.8 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.4418, allocations: 4 kB / 473.8 MB, free: 7.906 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.4418, allocations: 7.938 kB / 473.8 MB, free: 7.898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002673/0.4421, allocations: 125.8 kB / 474 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.4421, allocations: 3.953 kB / 474 MB, free: 7.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.4421, allocations: 8 kB / 474 MB, free: 7.742 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.4421, allocations: 0 / 474 MB, free: 7.742 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.373e-05/0.4422, allocations: 12 kB / 474 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004241/0.4426, allocations: 365.8 kB / 474.3 MB, free: 7.316 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.4428, allocations: 150.1 kB / 474.5 MB, free: 7.125 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.743e-05/0.4429, allocations: 42.66 kB / 474.5 MB, free: 7.074 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.4429, allocations: 12.06 kB / 474.5 MB, free: 7.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.443, allocations: 31.44 kB / 474.6 MB, free: 7.023 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.473e-06/0.443, allocations: 0 / 474.6 MB, free: 7.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002191/0.4432, allocations: 69.53 kB / 474.6 MB, free: 6.949 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.179e-05/0.4433, allocations: 114.8 kB / 474.8 MB, free: 6.812 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.4434, allocations: 127.9 kB / 474.9 MB, free: 6.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.4434, allocations: 29.7 kB / 474.9 MB, free: 6.645 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.997e-05/0.4435, allocations: 92.27 kB / 475 MB, free: 6.547 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.61e-05/0.4435, allocations: 3.906 kB / 475 MB, free: 6.543 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-06/0.4435, allocations: 0 / 475 MB, free: 6.543 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.4436, allocations: 322.8 kB / 475.3 MB, free: 6.219 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.383e-05/0.4437, allocations: 8 kB / 475.3 MB, free: 6.211 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.171e-05/0.4437, allocations: 40.3 kB / 475.4 MB, free: 6.156 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.663e-05/0.4437, allocations: 19.92 kB / 475.4 MB, free: 6.137 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.4438, allocations: 4 kB / 475.4 MB, free: 6.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001178/0.4439, allocations: 81.61 kB / 475.5 MB, free: 6.047 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.4439, allocations: 8 kB / 475.5 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.4439, allocations: 0 / 475.5 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.4439, allocations: 4 kB / 475.5 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.289e-05/0.444, allocations: 15.92 kB / 475.5 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.444, allocations: 0 / 475.5 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.966e-05/0.4441, allocations: 7.906 kB / 475.5 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.4441, allocations: 8 kB / 475.5 MB, free: 6.004 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 8.033e-05/0.4442, allocations: 109 kB / 475.6 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.4444, allocations: 57.55 kB / 475.7 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.206e-05/0.4444, allocations: 16.02 kB / 475.7 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.4444, allocations: 0 / 475.7 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.4444, allocations: 4 kB / 475.7 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.4445, allocations: 0 / 475.7 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002361/0.4447, allocations: 177.5 kB / 475.9 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.4447, allocations: 0 / 475.9 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.062e-05/0.4448, allocations: 15.98 kB / 475.9 MB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.13e-05/0.4448, allocations: 7.953 kB / 475.9 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.4448, allocations: 0 / 475.9 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4448, allocations: 4 kB / 475.9 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4448, allocations: 0 / 475.9 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.445, allocations: 274.9 kB / 476.2 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.228e-05/0.4451, allocations: 93 kB / 476.3 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.4451, allocations: 4 kB / 476.3 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.871e-05/0.4452, allocations: 4 kB / 476.3 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.44e-05/0.4453, allocations: 8 kB / 476.3 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.4453, allocations: 3.984 kB / 476.3 MB, free: 5.129 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.606e-05/0.4454, allocations: 113.7 kB / 476.4 MB, free: 5.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4454, allocations: 0 / 476.4 MB, free: 5.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002407/0.4456, allocations: 8 kB / 476.4 MB, free: 5.012 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0006399/0.4463, allocations: 0.955 MB / 477.3 MB, free: 4.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001311/0.4464, allocations: 40.11 kB / 477.4 MB, free: 3.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4464, allocations: 4.125 kB / 477.4 MB, free: 3.977 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.368e-05/0.4465, allocations: 4 kB / 477.4 MB, free: 3.973 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.4467, allocations: 31.91 kB / 477.4 MB, free: 3.941 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004492/0.4472, allocations: 156.7 kB / 477.6 MB, free: 3.742 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.4475, allocations: 0.6965 MB / 478.3 MB, free: 3.02 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.297e-05/0.4475, allocations: 8.438 kB / 478.3 MB, free: 3.012 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.409e-05/0.4476, allocations: 19.44 kB / 478.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4476, allocations: 0 / 478.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01218/0.4598, allocations: 1.498 MB / 479.8 MB, free: 1.652 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/0.46, allocations: 191 kB / 480 MB, free: 1.422 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.416/1.876, allocations: 0 / 480 MB, free: 1.422 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat does not exist to compare? outputFormat=mat