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.00154/0.00154, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009613/0.0009613, allocations: 87.61 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.072e-05/3.086e-05, allocations: 0 / 350.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09663, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3256/0.4223, allocations: 78.05 MB / 480.2 MB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.4226, allocations: 80.47 kB / 480.3 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004434/0.427, allocations: 1.671 MB / 481.9 MB, free: 9.922 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4271, allocations: 0 / 481.9 MB, free: 9.922 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.4271, allocations: 4 kB / 481.9 MB, free: 9.918 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.0002984/0.4274, allocations: 370 kB / 482.3 MB, free: 9.527 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.4274, allocations: 8.031 kB / 482.3 MB, free: 9.52 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.076e-05/0.4275, allocations: 33.44 kB / 482.3 MB, free: 9.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.4276, allocations: 24.05 kB / 482.4 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.4278, allocations: 187.3 kB / 482.5 MB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.4278, allocations: 11.3 kB / 482.5 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.4278, allocations: 2.906 kB / 482.6 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.4281, allocations: 131.7 kB / 482.7 MB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.4281, allocations: 0 / 482.7 MB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.4281, allocations: 0 / 482.7 MB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.4281, allocations: 0 / 482.7 MB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.411e-05/0.4282, allocations: 23.19 kB / 482.7 MB, free: 9.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003521/0.4285, allocations: 363.1 kB / 483.1 MB, free: 8.695 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001606/0.4287, allocations: 155.3 kB / 483.2 MB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.692e-05/0.4287, allocations: 37.02 kB / 483.2 MB, free: 8.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.4288, allocations: 1.125 kB / 483.2 MB, free: 8.465 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.473e-05/0.4288, allocations: 37.73 kB / 483.3 MB, free: 8.422 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.4288, allocations: 4 kB / 483.3 MB, free: 8.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001862/0.429, allocations: 72.36 kB / 483.4 MB, free: 8.348 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.4291, allocations: 110.4 kB / 483.5 MB, free: 8.219 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.867e-05/0.4291, allocations: 124.6 kB / 483.6 MB, free: 8.098 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.899e-06/0.4292, allocations: 25.7 kB / 483.6 MB, free: 8.066 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.794e-05/0.4292, allocations: 89.81 kB / 483.7 MB, free: 7.977 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.4292, allocations: 7.906 kB / 483.7 MB, free: 7.969 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-06/0.4292, allocations: 3.25 kB / 483.7 MB, free: 7.969 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.027e-05/0.4293, allocations: 326.7 kB / 484 MB, free: 7.641 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.348e-05/0.4293, allocations: 15.23 kB / 484 MB, free: 7.629 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.161e-05/0.4294, allocations: 41.14 kB / 484.1 MB, free: 7.582 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.107e-05/0.4294, allocations: 11 kB / 484.1 MB, free: 7.574 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4294, allocations: 4 kB / 484.1 MB, free: 7.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.892e-05/0.4295, allocations: 80.38 kB / 484.2 MB, free: 7.496 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.4295, allocations: 4 kB / 484.2 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.4296, allocations: 5.438 kB / 484.2 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.4296, allocations: 0 / 484.2 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.064e-05/0.4296, allocations: 11.98 kB / 484.2 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.4297, allocations: 4 kB / 484.2 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.74e-05/0.4297, allocations: 12.03 kB / 484.2 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.4297, allocations: 0 / 484.2 MB, free: 7.461 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 4.216e-05/0.4298, allocations: 119.9 kB / 484.3 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.073e-05/0.4299, allocations: 56.09 kB / 484.4 MB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.249e-05/0.4299, allocations: 11.16 kB / 484.4 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.4299, allocations: 0 / 484.4 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4299, allocations: 0 / 484.4 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4299, allocations: 3.984 kB / 484.4 MB, free: 7.273 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.4301, allocations: 174.9 kB / 484.6 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.4301, allocations: 4.562 kB / 484.6 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.332e-05/0.4302, allocations: 17.77 kB / 484.6 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.4302, allocations: 0 / 484.6 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.4302, allocations: 0 / 484.6 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.4302, allocations: 9.125 kB / 484.6 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4302, allocations: 0 / 484.6 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.4303, allocations: 274.7 kB / 484.9 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-05/0.4304, allocations: 101.8 kB / 485 MB, free: 6.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.4304, allocations: 0 / 485 MB, free: 6.637 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.847e-05/0.4305, allocations: 4 kB / 485 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.4306, allocations: 0 / 485 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.4306, allocations: 12.45 kB / 485 MB, free: 6.625 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.529e-05/0.4306, allocations: 104.8 kB / 485.1 MB, free: 6.531 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4306, allocations: 0 / 485.1 MB, free: 6.531 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002422/0.4309, allocations: 15.19 kB / 485.1 MB, free: 6.52 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.0003689/0.4312, allocations: 0.9591 MB / 486.1 MB, free: 5.543 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001028/0.4314, allocations: 42.92 kB / 486.1 MB, free: 5.512 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4314, allocations: 0 / 486.1 MB, free: 5.512 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.1e-05/0.4314, allocations: 11.94 kB / 486.1 MB, free: 5.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.4317, allocations: 25.7 kB / 486.1 MB, free: 5.484 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004183/0.4321, allocations: 158.2 kB / 486.3 MB, free: 5.301 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.4322, allocations: 0.7004 MB / 487 MB, free: 4.574 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.339e-05/0.4323, allocations: 8.172 kB / 487 MB, free: 4.566 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.4323, allocations: 14.38 kB / 487 MB, free: 4.559 MB / 346.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4323, allocations: 4 kB / 487 MB, free: 4.555 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01319/0.4455, allocations: 1.498 MB / 488.5 MB, free: 3.289 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/0.4457, allocations: 184.7 kB / 488.7 MB, free: 3.066 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.575/2.021, allocations: 64 / 488.7 MB, free: 3.066 MB / 346.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