Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001545/0.001549, allocations: 183.6 kB / 15.8 MB, free: 6.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 90.84 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1259/0.1259, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005446/0.0005447, allocations: 21.5 kB / 392.1 MB, free: 54.83 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0923/0.09289, allocations: 50.36 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.141/0.234, allocations: 78.55 MB / 0.5088 GB, free: 12.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000313/0.2344, allocations: 79.94 kB / 0.5089 GB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006543/0.2409, allocations: 1.496 MB / 0.5104 GB, free: 10.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.569e-06/0.241, allocations: 0 / 0.5104 GB, free: 10.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.241, allocations: 3.938 kB / 0.5104 GB, free: 10.59 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.0005339/0.2415, allocations: 386.9 kB / 0.5107 GB, free: 10.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.2416, allocations: 12.03 kB / 0.5107 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.949e-05/0.2417, allocations: 38.55 kB / 0.5108 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.734e-05/0.2417, allocations: 11.91 kB / 0.5108 GB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.242, allocations: 194.8 kB / 0.511 GB, free: 9.867 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.242, allocations: 4 kB / 0.511 GB, free: 9.863 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.242, allocations: 4 kB / 0.511 GB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004282/0.2425, allocations: 137.8 kB / 0.5111 GB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.2425, allocations: 0 / 0.5111 GB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.2425, allocations: 3.984 kB / 0.5111 GB, free: 9.699 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2425, allocations: 0 / 0.5111 GB, free: 9.699 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00016/0.2427, allocations: 27.98 kB / 0.5111 GB, free: 9.672 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005893/0.2433, allocations: 369.8 kB / 0.5115 GB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.2437, allocations: 161 kB / 0.5116 GB, free: 9.051 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.2437, allocations: 4 kB / 0.5116 GB, free: 9.047 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.2438, allocations: 32.09 kB / 0.5117 GB, free: 9.008 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 2.154e-06/0.2438, allocations: 0 / 0.5117 GB, free: 9.008 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004506/0.2442, allocations: 105.8 kB / 0.5118 GB, free: 8.898 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.574e-05/0.2443, allocations: 118.7 kB / 0.5119 GB, free: 8.758 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.2445, allocations: 121.3 kB / 0.512 GB, free: 8.629 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.2446, allocations: 29.7 kB / 0.512 GB, free: 8.594 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.774e-05/0.2446, allocations: 88.33 kB / 0.5121 GB, free: 8.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.2447, allocations: 7.891 kB / 0.5121 GB, free: 8.492 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.2447, allocations: 0 / 0.5121 GB, free: 8.492 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.2449, allocations: 322.8 kB / 0.5124 GB, free: 8.168 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.952e-05/0.245, allocations: 23.92 kB / 0.5125 GB, free: 8.145 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.2451, allocations: 44.28 kB / 0.5125 GB, free: 8.086 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.2452, allocations: 27.92 kB / 0.5125 GB, free: 8.059 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.2452, allocations: 0 / 0.5125 GB, free: 8.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002772/0.2455, allocations: 85.61 kB / 0.5126 GB, free: 7.969 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.2456, allocations: 8 kB / 0.5126 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2456, allocations: 0 / 0.5126 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.2456, allocations: 0 / 0.5126 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.2457, allocations: 16.06 kB / 0.5126 GB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.2458, allocations: 7.984 kB / 0.5126 GB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.904e-05/0.2458, allocations: 7.906 kB / 0.5126 GB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/0.2459, allocations: 4 kB / 0.5127 GB, free: 7.926 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 0.000141/0.246, allocations: 121.6 kB / 0.5128 GB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.2462, allocations: 65.47 kB / 0.5128 GB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.923e-05/0.2463, allocations: 16.23 kB / 0.5128 GB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2463, allocations: 0 / 0.5128 GB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2463, allocations: 0 / 0.5128 GB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.2463, allocations: 8 kB / 0.5129 GB, free: 7.699 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003251/0.2466, allocations: 177.5 kB / 0.513 GB, free: 7.477 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2467, allocations: 4 kB / 0.513 GB, free: 7.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.2468, allocations: 11.98 kB / 0.513 GB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.2468, allocations: 288 / 0.513 GB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.2468, allocations: 4 kB / 0.513 GB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.2468, allocations: 160 / 0.513 GB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2468, allocations: 0 / 0.513 GB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003809/0.2472, allocations: 290.9 kB / 0.5133 GB, free: 7.141 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.2474, allocations: 101 kB / 0.5134 GB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.2474, allocations: 0 / 0.5134 GB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.2476, allocations: 8 kB / 0.5134 GB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.915e-05/0.2476, allocations: 7.953 kB / 0.5134 GB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.2477, allocations: 4 kB / 0.5134 GB, free: 7.004 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001592/0.2478, allocations: 107.2 kB / 0.5135 GB, free: 6.898 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.2479, allocations: 0 / 0.5135 GB, free: 6.898 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004298/0.2483, allocations: 8 kB / 0.5135 GB, free: 6.891 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.0009057/0.2492, allocations: 0.9744 MB / 0.5145 GB, free: 5.879 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002641/0.2495, allocations: 59.91 kB / 0.5146 GB, free: 5.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2495, allocations: 0 / 0.5146 GB, free: 5.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.988e-05/0.2496, allocations: 12 kB / 0.5146 GB, free: 5.809 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.25, allocations: 31.7 kB / 0.5146 GB, free: 5.781 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.2517, allocations: 1.154 MB / 0.5157 GB, free: 4.551 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.2521, allocations: 0.7004 MB / 0.5164 GB, free: 3.824 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.507e-05/0.2522, allocations: 4.188 kB / 0.5164 GB, free: 3.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.244e-05/0.2523, allocations: 23.36 kB / 0.5164 GB, free: 3.797 MB / 362.7 MB Notification: Performance of SimCode: time 1.192e-06/0.2523, allocations: 0 / 0.5164 GB, free: 3.797 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02395/0.2762, allocations: 1.512 MB / 0.5179 GB, free: 2.293 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003677/0.2767, allocations: 232.5 kB / 0.5181 GB, free: 2.039 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.314/2.59, allocations: 3.938 kB / 0.5181 GB, free: 2.035 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat does not exist to compare? outputFormat=mat