Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked",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.002086/0.002085, allocations: 182.1 kB / 8.049 MB, free: 1.02 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.318/2.318, allocations: 205.3 MB / 213.8 MB, free: 13.76 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.001117/0.001117, allocations: 97.77 kB / 261.8 MB, free: 13.43 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.1267/0.1267, allocations: 12.59 MB / 322.3 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.492e-05/2.499e-05, allocations: 0 / 379 MB, free: 75.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 50.38 MB / 429.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4883/0.5891, allocations: 81.4 MB / 0.4988 GB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.5894, allocations: 71.56 kB / 0.4989 GB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03108/0.6205, allocations: 7.004 MB / 0.5057 GB, free: 10.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.6206, allocations: 3.812 kB / 0.5057 GB, free: 10.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.116e-05/0.6206, allocations: 7.562 kB / 0.5058 GB, free: 10.19 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00152/0.6222, allocations: 0.5822 MB / 0.5063 GB, free: 9.719 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.6222, allocations: 7.688 kB / 0.5063 GB, free: 9.719 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.6223, allocations: 38.03 kB / 0.5064 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.6228, allocations: 268.2 kB / 0.5066 GB, free: 9.453 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002584/0.6231, allocations: 139.5 kB / 0.5068 GB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.497e-05/0.6232, allocations: 19.22 kB / 0.5068 GB, free: 9.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001009/0.6242, allocations: 415.7 kB / 0.5072 GB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.6252, allocations: 450.3 kB / 0.5076 GB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.6253, allocations: 15.77 kB / 0.5076 GB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.523e-05/0.6253, allocations: 0 / 0.5076 GB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.6253, allocations: 7.375 kB / 0.5076 GB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.6274, allocations: 0.9678 MB / 0.5086 GB, free: 8.445 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.6287, allocations: 398.4 kB / 0.5089 GB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004307/0.6292, allocations: 199.2 kB / 0.5091 GB, free: 8.266 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.053e-05/0.6293, allocations: 3.906 kB / 0.5091 GB, free: 8.266 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.6293, allocations: 41.56 kB / 0.5092 GB, free: 8.223 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 4.379e-06/0.6293, allocations: 0 / 0.5092 GB, free: 8.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.01369/0.643, allocations: 1.992 MB / 0.5111 GB, free: 7.719 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.708e-05/0.6432, allocations: 140.6 kB / 0.5113 GB, free: 7.562 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.6434, allocations: 176.3 kB / 0.5114 GB, free: 7.449 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.6436, allocations: 25.7 kB / 0.5114 GB, free: 7.418 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.97e-05/0.6437, allocations: 151 kB / 0.5116 GB, free: 7.297 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.6439, allocations: 184.5 kB / 0.5118 GB, free: 7.164 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.644, allocations: 0 / 0.5118 GB, free: 7.164 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.962e-05/0.6441, allocations: 343.7 kB / 0.5121 GB, free: 6.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.6452, allocations: 466.2 kB / 0.5125 GB, free: 6.836 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.6463, allocations: 0.6313 MB / 0.5132 GB, free: 6.609 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009526/0.6473, allocations: 415.1 kB / 0.5136 GB, free: 6.559 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/0.6473, allocations: 3.953 kB / 0.5136 GB, free: 6.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002821/0.6502, allocations: 1.04 MB / 0.5146 GB, free: 6.406 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.882e-05/0.6503, allocations: 7.812 kB / 0.5146 GB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/0.6503, allocations: 8.375 kB / 0.5146 GB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.302e-05/0.6504, allocations: 7.75 kB / 0.5146 GB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002668/0.653, allocations: 230.4 kB / 0.5148 GB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.525e-05/0.6531, allocations: 23.5 kB / 0.5148 GB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001917/0.6551, allocations: 113.1 kB / 0.5149 GB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/0.6553, allocations: 28.11 kB / 0.515 GB, free: 6.289 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0003705/0.6557, allocations: 126.8 kB / 0.5151 GB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002732/0.6584, allocations: 0.9062 MB / 0.516 GB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002394/0.6587, allocations: 30.97 kB / 0.516 GB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002562/0.659, allocations: 57.39 kB / 0.5161 GB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.659, allocations: 7.688 kB / 0.5161 GB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.6591, allocations: 3.938 kB / 0.5161 GB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.6591, allocations: 7.828 kB / 0.5161 GB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006118/0.6652, allocations: 1.897 MB / 0.5179 GB, free: 4.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.082e-05/0.6653, allocations: 7.594 kB / 0.5179 GB, free: 4.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/0.6669, allocations: 205.5 kB / 0.5181 GB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.649e-05/0.667, allocations: 15.53 kB / 0.5182 GB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.6671, allocations: 15.56 kB / 0.5182 GB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.908e-05/0.6672, allocations: 15.47 kB / 0.5182 GB, free: 4.891 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.781e-05/0.6672, allocations: 27.39 kB / 0.5182 GB, free: 4.875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002614/0.6698, allocations: 1.694 MB / 0.5199 GB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004015/0.6703, allocations: 169.7 kB / 0.52 GB, free: 3.332 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.6704, allocations: 11.47 kB / 0.52 GB, free: 3.332 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.6716, allocations: 93.52 kB / 0.5201 GB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003657/0.6721, allocations: 104.5 kB / 0.5202 GB, free: 3.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.033e-05/0.6722, allocations: 30.94 kB / 0.5203 GB, free: 3.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002031/0.6724, allocations: 137.2 kB / 0.5204 GB, free: 3.168 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6724, allocations: 0 / 0.5204 GB, free: 3.168 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001209/0.6736, allocations: 104.6 kB / 0.5205 GB, free: 3.164 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.004175/0.6778, allocations: 5.311 MB / 0.5257 GB, free: 14.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002199/0.6801, allocations: 0.8144 MB / 0.5265 GB, free: 14.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.74e-05/0.6802, allocations: 3.844 kB / 0.5265 GB, free: 14.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000859/0.6811, allocations: 219.1 kB / 0.5267 GB, free: 14.17 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.6823, allocations: 106 kB / 0.5268 GB, free: 14.15 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004463/0.6868, allocations: 0.9972 MB / 0.5278 GB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006893/0.6876, allocations: 0.8208 MB / 0.5286 GB, free: 12.64 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001193/0.6888, allocations: 90.08 kB / 0.5286 GB, free: 12.58 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006791/0.6895, allocations: 113.8 kB / 0.5287 GB, free: 12.57 MB / 346.7 MB Notification: Performance of SimCode: time 2.144e-06/0.6896, allocations: 4 kB / 0.5288 GB, free: 12.56 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06708/0.7567, allocations: 9.98 MB / 0.5385 GB, free: 3.523 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004018/0.7571, allocations: 168.1 kB / 0.5387 GB, free: 3.324 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.805/3.562, allocations: 0 / 0.5387 GB, free: 3.324 MB / 346.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat