Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001004/0.001004, allocations: 197.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 227.2 MB / 245 MB, free: 5.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008337/0.0008337, allocations: 101.6 kB / 297.3 MB, free: 5.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001937/0.0001937, allocations: 11.98 kB / 358 MB, free: 9.242 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1774, allocations: 51.47 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08594/0.2634, allocations: 78.12 MB / 487.6 MB, free: 12.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.2637, allocations: 87.94 kB / 487.7 MB, free: 12.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004394/0.2681, allocations: 1.682 MB / 489.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2681, allocations: 0 / 489.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.2682, allocations: 0 / 489.4 MB, free: 10.73 MB / 362.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.0003681/0.2685, allocations: 383 kB / 489.8 MB, free: 10.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.2686, allocations: 8.031 kB / 489.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.679e-05/0.2686, allocations: 42.5 kB / 489.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.2687, allocations: 23.89 kB / 489.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.2689, allocations: 192.9 kB / 490 MB, free: 10 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-06/0.2689, allocations: 4 kB / 490 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.269, allocations: 4 kB / 490 MB, free: 9.992 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002608/0.2692, allocations: 133.9 kB / 490.2 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.2693, allocations: 0 / 490.2 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.2693, allocations: 0 / 490.2 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2693, allocations: 3.938 kB / 490.2 MB, free: 9.836 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.348e-05/0.2694, allocations: 27.97 kB / 490.2 MB, free: 9.809 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003796/0.2698, allocations: 365.9 kB / 490.5 MB, free: 9.395 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/0.27, allocations: 161 kB / 490.7 MB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.27, allocations: 7.984 kB / 490.7 MB, free: 9.184 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.27, allocations: 34.56 kB / 490.7 MB, free: 9.141 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.27, allocations: 0 / 490.7 MB, free: 9.141 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.00028/0.2703, allocations: 101.7 kB / 490.8 MB, free: 9.035 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.2704, allocations: 110.8 kB / 491 MB, free: 8.902 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.2705, allocations: 131.9 kB / 491.1 MB, free: 8.766 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.2705, allocations: 25.7 kB / 491.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.489e-05/0.2706, allocations: 88.31 kB / 491.2 MB, free: 8.641 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.613e-05/0.2706, allocations: 11.84 kB / 491.2 MB, free: 8.629 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-06/0.2706, allocations: 4 kB / 491.2 MB, free: 8.625 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.984e-05/0.2707, allocations: 314.8 kB / 491.5 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.329e-05/0.2707, allocations: 23.98 kB / 491.5 MB, free: 8.285 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.322e-05/0.2708, allocations: 44.28 kB / 491.6 MB, free: 8.227 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.576e-05/0.2709, allocations: 23.98 kB / 491.6 MB, free: 8.203 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.2709, allocations: 0 / 491.6 MB, free: 8.203 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001543/0.271, allocations: 93.64 kB / 491.7 MB, free: 8.105 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.2711, allocations: 4 kB / 491.7 MB, free: 8.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.309e-06/0.2711, allocations: 4.047 kB / 491.7 MB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.2711, allocations: 7.922 kB / 491.7 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.683e-05/0.2711, allocations: 12.11 kB / 491.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.2712, allocations: 11.94 kB / 491.7 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.764e-05/0.2712, allocations: 7.938 kB / 491.7 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.2712, allocations: 4 kB / 491.7 MB, free: 8.055 MB / 362.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 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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.031e-05/0.2713, allocations: 125.8 kB / 491.9 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.667e-05/0.2714, allocations: 49.61 kB / 491.9 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.2715, allocations: 16.23 kB / 491.9 MB, free: 7.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2715, allocations: 0 / 491.9 MB, free: 7.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2715, allocations: 0 / 491.9 MB, free: 7.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2715, allocations: 8 kB / 491.9 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002677/0.2718, allocations: 173.6 kB / 492.1 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2718, allocations: 4 kB / 492.1 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.821e-05/0.2718, allocations: 11.94 kB / 492.1 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2718, allocations: 0 / 492.1 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.2719, allocations: 4 kB / 492.1 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.2719, allocations: 4 kB / 492.1 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2719, allocations: 3.984 kB / 492.1 MB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002115/0.2721, allocations: 283 kB / 492.4 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.778e-05/0.2722, allocations: 93 kB / 492.5 MB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.2722, allocations: 8 kB / 492.5 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.2723, allocations: 9.25 kB / 492.5 MB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.742e-05/0.2723, allocations: 4 kB / 492.5 MB, free: 7.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.2723, allocations: 7.984 kB / 492.5 MB, free: 7.141 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.682e-05/0.2724, allocations: 107.2 kB / 492.6 MB, free: 7.035 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2724, allocations: 0 / 492.6 MB, free: 7.035 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002516/0.2727, allocations: 8 kB / 492.6 MB, free: 7.027 MB / 362.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 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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.0005643/0.2732, allocations: 0.9854 MB / 493.6 MB, free: 6.008 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001397/0.2734, allocations: 47.97 kB / 493.7 MB, free: 5.961 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2734, allocations: 0 / 493.7 MB, free: 5.961 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.369e-05/0.2735, allocations: 15.98 kB / 493.7 MB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.2737, allocations: 28.02 kB / 493.7 MB, free: 5.918 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009966/0.2747, allocations: 1.157 MB / 494.9 MB, free: 4.684 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.275, allocations: 0.7036 MB / 495.6 MB, free: 3.957 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.525e-05/0.275, allocations: 8.453 kB / 495.6 MB, free: 3.949 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.918e-05/0.2751, allocations: 23.06 kB / 495.6 MB, free: 3.93 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2751, allocations: 0 / 495.6 MB, free: 3.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01165/0.2867, allocations: 1.5 MB / 497.1 MB, free: 2.609 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/0.2869, allocations: 214.1 kB / 497.3 MB, free: 2.367 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.455/1.742, allocations: 7.5 kB / 497.3 MB, free: 2.363 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat does not exist to compare? outputFormat=mat