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.002468/0.002468, allocations: 179.8 kB / 13.23 MB, free: 2.082 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.147/2.147, allocations: 205.2 MB / 219 MB, free: 9.137 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.001167/0.001167, allocations: 93.53 kB / 267.1 MB, free: 9.266 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.1054/0.1054, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.42e-05/4.437e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 50.36 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4644/0.565, allocations: 82.07 MB / 0.5064 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.5653, allocations: 71.11 kB / 0.5064 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03103/0.5963, allocations: 7.052 MB / 0.5133 GB, free: 9.227 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5964, allocations: 0 / 0.5133 GB, free: 9.227 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.971e-05/0.5964, allocations: 3.844 kB / 0.5133 GB, free: 9.227 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.001459/0.5979, allocations: 0.5882 MB / 0.5139 GB, free: 8.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.598, allocations: 7.5 kB / 0.5139 GB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001006/0.5981, allocations: 75.94 kB / 0.514 GB, free: 8.703 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.563e-05/0.5982, allocations: 34.72 kB / 0.514 GB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.5986, allocations: 274.2 kB / 0.5143 GB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002643/0.5989, allocations: 142.6 kB / 0.5144 GB, free: 8.332 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.471e-05/0.599, allocations: 32.44 kB / 0.5145 GB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.6002, allocations: 0.5063 MB / 0.5149 GB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.6002, allocations: 0 / 0.5149 GB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.733e-05/0.6003, allocations: 11.47 kB / 0.515 GB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.6003, allocations: 7.688 kB / 0.515 GB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009921/0.6013, allocations: 417.3 kB / 0.5154 GB, free: 8.098 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.6034, allocations: 1.018 MB / 0.5164 GB, free: 7.391 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.6048, allocations: 424.9 kB / 0.5168 GB, free: 7.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004464/0.6053, allocations: 198.1 kB / 0.517 GB, free: 7.215 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.59e-05/0.6054, allocations: 19.14 kB / 0.517 GB, free: 7.207 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.6054, allocations: 41.59 kB / 0.517 GB, free: 7.164 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.667e-06/0.6054, allocations: 0 / 0.517 GB, free: 7.164 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.01411/0.6195, allocations: 2.083 MB / 0.519 GB, free: 6.156 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.11e-05/0.6197, allocations: 148.3 kB / 0.5192 GB, free: 5.984 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.62, allocations: 183.8 kB / 0.5194 GB, free: 5.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001206/0.6201, allocations: 38.39 kB / 0.5194 GB, free: 5.785 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.195e-05/0.6202, allocations: 141.6 kB / 0.5195 GB, free: 5.656 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002272/0.6204, allocations: 190.6 kB / 0.5197 GB, free: 5.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.6205, allocations: 18.06 kB / 0.5197 GB, free: 5.492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.374e-05/0.6206, allocations: 342.1 kB / 0.5201 GB, free: 5.164 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.6218, allocations: 482.2 kB / 0.5205 GB, free: 4.934 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.6232, allocations: 0.6427 MB / 0.5211 GB, free: 4.469 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.6243, allocations: 431.5 kB / 0.5216 GB, free: 4.23 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.6243, allocations: 0 / 0.5216 GB, free: 4.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002952/0.6273, allocations: 1.111 MB / 0.5226 GB, free: 3.559 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.6274, allocations: 8.719 kB / 0.5227 GB, free: 3.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/0.6274, allocations: 4 kB / 0.5227 GB, free: 3.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.209e-05/0.6274, allocations: 19.94 kB / 0.5227 GB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0026/0.6301, allocations: 223.6 kB / 0.5229 GB, free: 3.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.578e-05/0.6301, allocations: 15.95 kB / 0.5229 GB, free: 3.297 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.632, allocations: 127.2 kB / 0.523 GB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/0.6322, allocations: 27.94 kB / 0.523 GB, free: 3.16 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.0003608/0.6325, allocations: 157.1 kB / 0.5232 GB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004911/0.6331, allocations: 148 kB / 0.5233 GB, free: 2.898 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002316/0.6333, allocations: 64.77 kB / 0.5234 GB, free: 2.883 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.6333, allocations: 8 kB / 0.5234 GB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.6333, allocations: 0 / 0.5234 GB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.6334, allocations: 8.125 kB / 0.5234 GB, free: 2.867 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0058/0.6392, allocations: 2.025 MB / 0.5254 GB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.748e-05/0.6392, allocations: 8 kB / 0.5254 GB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/0.6408, allocations: 208.3 kB / 0.5256 GB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.207e-05/0.6408, allocations: 12 kB / 0.5256 GB, free: 0.8594 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.647e-05/0.6409, allocations: 27.25 kB / 0.5256 GB, free: 0.8438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.032e-05/0.6409, allocations: 23.92 kB / 0.5257 GB, free: 0.8203 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.136e-05/0.641, allocations: 19.94 kB / 0.5257 GB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002863/0.6438, allocations: 1.749 MB / 0.5274 GB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003606/0.6442, allocations: 171.4 kB / 0.5276 GB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.6444, allocations: 24.31 kB / 0.5276 GB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.6455, allocations: 97.78 kB / 0.5277 GB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003356/0.6458, allocations: 101.7 kB / 0.5278 GB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.836e-05/0.6459, allocations: 35 kB / 0.5278 GB, free: 14.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002294/0.6462, allocations: 146 kB / 0.5279 GB, free: 14.46 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6462, allocations: 0 / 0.5279 GB, free: 14.46 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009637/0.6472, allocations: 130.3 kB / 0.5281 GB, free: 14.36 MB / 346.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.004579/0.6518, allocations: 5.364 MB / 0.5333 GB, free: 9.016 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.6542, allocations: 0.8638 MB / 0.5341 GB, free: 8.535 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/0.6543, allocations: 4 kB / 0.5341 GB, free: 8.531 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008303/0.6551, allocations: 236.3 kB / 0.5344 GB, free: 8.359 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.6562, allocations: 128.5 kB / 0.5345 GB, free: 8.262 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003965/0.6601, allocations: 1.067 MB / 0.5355 GB, free: 7.176 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005048/0.6607, allocations: 0.8201 MB / 0.5363 GB, free: 6.332 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001022/0.6617, allocations: 87.36 kB / 0.5364 GB, free: 6.246 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000593/0.6623, allocations: 117.3 kB / 0.5365 GB, free: 6.199 MB / 346.7 MB Notification: Performance of SimCode: time 1.563e-06/0.6624, allocations: 0 / 0.5365 GB, free: 6.199 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03987/0.7022, allocations: 10.41 MB / 0.5467 GB, free: 11.79 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002228/0.7025, allocations: 180.1 kB / 0.5469 GB, free: 11.56 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.867/3.57, allocations: 0 / 0.5469 GB, free: 11.56 MB / 362.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