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.002476/0.002475, allocations: 181.5 kB / 13.23 MB, free: 2.086 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.529/2.529, allocations: 205.2 MB / 219 MB, free: 9.219 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.001113/0.001113, allocations: 87.44 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1652/0.1652, allocations: 12.58 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.563e-05/3.573e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1072, allocations: 50.38 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4537/0.561, allocations: 78.46 MB / 0.5029 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.5613, allocations: 82.59 kB / 0.5029 GB, free: 11.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005543/0.5669, allocations: 1.493 MB / 0.5044 GB, free: 11.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5669, allocations: 3.938 kB / 0.5044 GB, free: 11.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.5669, allocations: 3.688 kB / 0.5044 GB, free: 11.6 MB / 330.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.0003704/0.5673, allocations: 352.6 kB / 0.5047 GB, free: 11.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.5674, allocations: 15.38 kB / 0.5048 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.5674, allocations: 37.19 kB / 0.5048 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.5675, allocations: 11.66 kB / 0.5048 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.5677, allocations: 192.3 kB / 0.505 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.5677, allocations: 3.938 kB / 0.505 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.5677, allocations: 7.781 kB / 0.505 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.568, allocations: 124.9 kB / 0.5051 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.568, allocations: 0 / 0.5051 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.5681, allocations: 3.984 kB / 0.5051 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.5681, allocations: 3.812 kB / 0.5051 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.034e-05/0.5681, allocations: 18.62 kB / 0.5051 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004249/0.5686, allocations: 361.5 kB / 0.5055 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.5688, allocations: 155.1 kB / 0.5056 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.646e-05/0.5689, allocations: 33.86 kB / 0.5057 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.5689, allocations: 4 kB / 0.5057 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.5689, allocations: 40.52 kB / 0.5057 GB, free: 10.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.853e-06/0.5689, allocations: 0 / 0.5057 GB, free: 10.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002228/0.5692, allocations: 69.94 kB / 0.5058 GB, free: 10.26 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.5692, allocations: 105.8 kB / 0.5059 GB, free: 10.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.5694, allocations: 139.1 kB / 0.506 GB, free: 10.03 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.5694, allocations: 29.58 kB / 0.506 GB, free: 10 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.057e-05/0.5694, allocations: 84.02 kB / 0.5061 GB, free: 9.914 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.027e-05/0.5695, allocations: 14.7 kB / 0.5061 GB, free: 9.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/0.5695, allocations: 0 / 0.5061 GB, free: 9.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.35e-05/0.5696, allocations: 317.8 kB / 0.5064 GB, free: 9.598 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.55e-05/0.5696, allocations: 11.44 kB / 0.5065 GB, free: 9.598 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.927e-05/0.5697, allocations: 47.27 kB / 0.5065 GB, free: 9.551 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.727e-05/0.5697, allocations: 14.53 kB / 0.5065 GB, free: 9.547 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.5697, allocations: 0 / 0.5065 GB, free: 9.547 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001495/0.5699, allocations: 75.7 kB / 0.5066 GB, free: 9.508 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.5699, allocations: 7.5 kB / 0.5066 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.5699, allocations: 4.125 kB / 0.5066 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.57, allocations: 3.844 kB / 0.5066 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.5701, allocations: 13.75 kB / 0.5066 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.5701, allocations: 4 kB / 0.5066 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.452e-05/0.5702, allocations: 11.5 kB / 0.5066 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.5702, allocations: 10.02 kB / 0.5066 GB, free: 9.488 MB / 330.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 5.732e-05/0.5703, allocations: 108.6 kB / 0.5067 GB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.5704, allocations: 58.53 kB / 0.5068 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/0.5704, allocations: 14.41 kB / 0.5068 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.5705, allocations: 3.688 kB / 0.5068 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5705, allocations: 0 / 0.5068 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.5705, allocations: 0 / 0.5068 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002363/0.5707, allocations: 174.5 kB / 0.507 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.5707, allocations: 3.984 kB / 0.507 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.907e-05/0.5708, allocations: 13.5 kB / 0.507 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.5709, allocations: 3.984 kB / 0.507 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.5709, allocations: 3.844 kB / 0.507 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.5709, allocations: 0 / 0.507 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.5709, allocations: 4 kB / 0.507 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.5711, allocations: 272.1 kB / 0.5073 GB, free: 8.879 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.344e-05/0.5712, allocations: 93.11 kB / 0.5074 GB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.5712, allocations: 3.688 kB / 0.5074 GB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.5713, allocations: 13.38 kB / 0.5074 GB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.5714, allocations: 3.953 kB / 0.5074 GB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.5714, allocations: 3.812 kB / 0.5074 GB, free: 8.773 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.75e-05/0.5715, allocations: 112.9 kB / 0.5075 GB, free: 8.695 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5715, allocations: 3.938 kB / 0.5075 GB, free: 8.691 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003327/0.5718, allocations: 7.562 kB / 0.5075 GB, free: 8.691 MB / 330.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.0004627/0.5723, allocations: 0.9515 MB / 0.5084 GB, free: 7.773 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001355/0.5725, allocations: 35.56 kB / 0.5085 GB, free: 7.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5725, allocations: 0 / 0.5085 GB, free: 7.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.444e-05/0.5726, allocations: 15.59 kB / 0.5085 GB, free: 7.762 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.5729, allocations: 27.44 kB / 0.5085 GB, free: 7.758 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005507/0.5735, allocations: 163.2 kB / 0.5087 GB, free: 7.613 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001791/0.5737, allocations: 0.7005 MB / 0.5093 GB, free: 6.914 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.016e-05/0.5737, allocations: 6.922 kB / 0.5093 GB, free: 6.914 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.644e-05/0.5738, allocations: 21.53 kB / 0.5094 GB, free: 6.902 MB / 330.7 MB Notification: Performance of SimCode: time 6.62e-07/0.5738, allocations: 0 / 0.5094 GB, free: 6.902 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02308/0.5969, allocations: 1.508 MB / 0.5108 GB, free: 6.395 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003166/0.5973, allocations: 194 kB / 0.511 GB, free: 6.172 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.517/3.114, allocations: 0 / 0.511 GB, free: 6.172 MB / 330.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