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.001689/0.001689, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 225.6 MB / 234.8 MB, free: 3.176 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008249/0.0008249, allocations: 102.8 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.258e-05/2.263e-05, allocations: 4 kB / 343.8 MB, free: 8.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1024, allocations: 51.47 MB / 395.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2996/0.4021, allocations: 77.39 MB / 472.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001881/0.4023, allocations: 78.88 kB / 472.7 MB, free: 13.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004227/0.4066, allocations: 1.665 MB / 474.4 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4066, allocations: 0 / 474.4 MB, free: 12.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.4066, allocations: 0 / 474.4 MB, free: 12.75 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.0002916/0.4069, allocations: 365.4 kB / 474.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.407, allocations: 12.73 kB / 474.8 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.4071, allocations: 23.41 kB / 474.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.4072, allocations: 184.8 kB / 475 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.816e-06/0.4073, allocations: 4 kB / 475 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.4073, allocations: 12.39 kB / 475 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.634e-05/0.4074, allocations: 19.67 kB / 475 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.4075, allocations: 119.9 kB / 475.1 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.4076, allocations: 0 / 475.1 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.4076, allocations: 0 / 475.1 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.4076, allocations: 0.6094 kB / 475.1 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002988/0.4079, allocations: 345 kB / 475.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.408, allocations: 150.9 kB / 475.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.837e-05/0.4081, allocations: 29.7 kB / 475.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.4081, allocations: 0 / 475.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.497e-05/0.4081, allocations: 47.7 kB / 475.7 MB, free: 11.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.4081, allocations: 0 / 475.7 MB, free: 11.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001654/0.4083, allocations: 61.45 kB / 475.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.4083, allocations: 106.2 kB / 475.8 MB, free: 11.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.188e-05/0.4084, allocations: 126.6 kB / 476 MB, free: 11.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.4085, allocations: 25.7 kB / 476 MB, free: 11.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.55e-05/0.4085, allocations: 89.52 kB / 476.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.4085, allocations: 10.84 kB / 476.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.928e-06/0.4085, allocations: 0 / 476.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.828e-05/0.4086, allocations: 319.6 kB / 476.4 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.857e-05/0.4086, allocations: 9.375 kB / 476.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.663e-05/0.4086, allocations: 41.98 kB / 476.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.886e-05/0.4087, allocations: 22.88 kB / 476.5 MB, free: 10.56 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4087, allocations: 0 / 476.5 MB, free: 10.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.809e-05/0.4088, allocations: 61.84 kB / 476.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.4088, allocations: 4.75 kB / 476.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.4088, allocations: 6.578 kB / 476.5 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.4088, allocations: 0 / 476.5 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.931e-05/0.4089, allocations: 21.45 kB / 476.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.4089, allocations: 0.7969 kB / 476.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.586e-05/0.409, allocations: 8.656 kB / 476.6 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.409, allocations: 8.5 kB / 476.6 MB, free: 10.46 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.206e-05/0.409, allocations: 112.8 kB / 476.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001062/0.4091, allocations: 69.92 kB / 476.8 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.4092, allocations: 7.906 kB / 476.8 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.468e-05/0.4092, allocations: 13.84 kB / 476.8 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.4092, allocations: 4.203 kB / 476.8 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4092, allocations: 2.812 kB / 476.8 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4092, allocations: 8.734 kB / 476.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001658/0.4094, allocations: 150.4 kB / 476.9 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4094, allocations: 0 / 476.9 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.577e-05/0.4095, allocations: 10.44 kB / 477 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.4095, allocations: 4.984 kB / 477 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.944e-06/0.4095, allocations: 0 / 477 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.4095, allocations: 0 / 477 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.4095, allocations: 4.609 kB / 477 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001266/0.4097, allocations: 272 kB / 477.2 MB, free: 9.793 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.812e-05/0.4097, allocations: 93.19 kB / 477.3 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.4097, allocations: 0.5625 kB / 477.3 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.4098, allocations: 9.359 kB / 477.3 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.4099, allocations: 4.078 kB / 477.3 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.4099, allocations: 7.75 kB / 477.3 MB, free: 9.676 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.085e-05/0.41, allocations: 107.8 kB / 477.4 MB, free: 9.582 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.41, allocations: 0 / 477.4 MB, free: 9.582 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002563/0.4102, allocations: 8.656 kB / 477.5 MB, free: 9.574 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.0003665/0.4106, allocations: 0.9543 MB / 478.4 MB, free: 8.613 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.75e-05/0.4107, allocations: 30.83 kB / 478.4 MB, free: 8.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.4107, allocations: 3.938 kB / 478.4 MB, free: 8.586 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.694e-05/0.4107, allocations: 8.812 kB / 478.5 MB, free: 8.582 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.411, allocations: 24.52 kB / 478.5 MB, free: 8.566 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004006/0.4114, allocations: 153.2 kB / 478.6 MB, free: 8.398 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.4115, allocations: 0.6951 MB / 479.3 MB, free: 7.688 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.376e-05/0.4116, allocations: 1.828 kB / 479.3 MB, free: 7.688 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.97e-05/0.4116, allocations: 19.5 kB / 479.3 MB, free: 7.676 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4116, allocations: 5.688 kB / 479.3 MB, free: 7.672 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.4319, allocations: 1.157 MB / 480.5 MB, free: 7.02 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000267/0.4322, allocations: 178.3 kB / 480.7 MB, free: 6.824 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.522/1.954, allocations: 3 kB / 480.7 MB, free: 6.824 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