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.002477/0.002478, allocations: 179.7 kB / 15.8 MB, free: 6.34 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.077/2.077, allocations: 205.4 MB / 221.9 MB, free: 13.85 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.001101/0.0011, allocations: 94.78 kB / 270.3 MB, free: 13.37 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.09695/0.09695, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005579/0.000558, allocations: 13.44 kB / 392.1 MB, free: 54.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0964/0.097, allocations: 50.36 MB / 442.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1494/0.2465, allocations: 82.15 MB / 0.5123 GB, free: 8.566 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/0.2469, allocations: 79.95 kB / 0.5124 GB, free: 8.488 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04487/0.2917, allocations: 7.076 MB / 0.5193 GB, free: 1.398 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.2918, allocations: 0 / 0.5193 GB, free: 1.398 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.619e-05/0.2919, allocations: 8 kB / 0.5193 GB, free: 1.391 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.002735/0.2946, allocations: 0.6042 MB / 0.5199 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.2947, allocations: 8.031 kB / 0.5199 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001867/0.2949, allocations: 74.53 kB / 0.52 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.295, allocations: 35.62 kB / 0.52 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005252/0.2955, allocations: 267.1 kB / 0.5203 GB, free: 316 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003304/0.2959, allocations: 145.7 kB / 0.5204 GB, free: 152 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.282e-05/0.296, allocations: 35.89 kB / 0.5204 GB, free: 116 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2713/0.5673, allocations: 0.5672 MB / 0.521 GB, free: 84.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.848e-05/0.5674, allocations: 3.328 kB / 0.521 GB, free: 84.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.909e-05/0.5675, allocations: 14.53 kB / 0.521 GB, free: 84.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.5675, allocations: 8.406 kB / 0.521 GB, free: 84.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002612/0.5701, allocations: 0.539 MB / 0.5215 GB, free: 84.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.5724, allocations: 1.024 MB / 0.5225 GB, free: 83.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00259/0.575, allocations: 0.5061 MB / 0.523 GB, free: 83.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.619e-05/0.5751, allocations: 6.797 kB / 0.523 GB, free: 83.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.5751, allocations: 43 kB / 0.5231 GB, free: 83.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 4.148e-06/0.5751, allocations: 0 / 0.5231 GB, free: 83.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.08234/0.6575, allocations: 6.766 MB / 0.5297 GB, free: 83.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.6576, allocations: 148.5 kB / 0.5298 GB, free: 83.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.6579, allocations: 183.5 kB / 0.53 GB, free: 82.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.6581, allocations: 43.08 kB / 0.5301 GB, free: 82.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.448e-05/0.6582, allocations: 138.8 kB / 0.5302 GB, free: 82.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002773/0.6584, allocations: 199.2 kB / 0.5304 GB, free: 82.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.6586, allocations: 13.56 kB / 0.5304 GB, free: 82.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.56e-05/0.6587, allocations: 348.3 kB / 0.5307 GB, free: 82.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003053/0.6618, allocations: 0.6582 MB / 0.5314 GB, free: 82.37 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003117/0.6649, allocations: 0.8356 MB / 0.5322 GB, free: 82.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002829/0.6678, allocations: 0.6046 MB / 0.5328 GB, free: 81.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.6678, allocations: 0 / 0.5328 GB, free: 81.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.006621/0.6744, allocations: 1.483 MB / 0.5342 GB, free: 81.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.6745, allocations: 7.844 kB / 0.5342 GB, free: 81.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.6745, allocations: 7.688 kB / 0.5342 GB, free: 81.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.955e-05/0.6745, allocations: 11.52 kB / 0.5342 GB, free: 81.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002497/0.677, allocations: 236.8 kB / 0.5345 GB, free: 81.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.148e-05/0.6771, allocations: 12.2 kB / 0.5345 GB, free: 81.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/0.6789, allocations: 121.9 kB / 0.5346 GB, free: 81.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.679, allocations: 33.66 kB / 0.5346 GB, free: 81.34 MB / 362.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 () * Number of clocked states: 1 (PI.x) * 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.0004345/0.6795, allocations: 188.3 kB / 0.5348 GB, free: 81.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004531/0.68, allocations: 152.3 kB / 0.535 GB, free: 81.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002368/0.6802, allocations: 70.61 kB / 0.535 GB, free: 81.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.6802, allocations: 11.3 kB / 0.535 GB, free: 81.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/0.6802, allocations: 0.875 kB / 0.535 GB, free: 81.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.6803, allocations: 3.797 kB / 0.535 GB, free: 81.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008062/0.6883, allocations: 2.303 MB / 0.5373 GB, free: 79.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/0.6884, allocations: 8 kB / 0.5373 GB, free: 79.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/0.6898, allocations: 204.6 kB / 0.5375 GB, free: 79.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.989e-05/0.6899, allocations: 16 kB / 0.5375 GB, free: 79.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.26e-05/0.6899, allocations: 29.56 kB / 0.5375 GB, free: 79.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.776e-05/0.69, allocations: 23.88 kB / 0.5376 GB, free: 79.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.209e-05/0.69, allocations: 19.94 kB / 0.5376 GB, free: 79 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005852/0.6959, allocations: 2.188 MB / 0.5397 GB, free: 76.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002624/0.6961, allocations: 168.5 kB / 0.5399 GB, free: 76.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.651e-05/0.6963, allocations: 28 kB / 0.5399 GB, free: 76.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.6973, allocations: 99.97 kB / 0.54 GB, free: 76.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/0.6976, allocations: 103.7 kB / 0.5401 GB, free: 75.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.696e-05/0.6977, allocations: 32 kB / 0.5401 GB, free: 75.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001685/0.6979, allocations: 149.2 kB / 0.5403 GB, free: 75.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6979, allocations: 4 kB / 0.5403 GB, free: 75.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008988/0.6988, allocations: 124 kB / 0.5404 GB, free: 75.68 MB / 362.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 () * Number of clocked states: 1 (PI.x) * 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.006503/0.7053, allocations: 5.785 MB / 0.546 GB, free: 69.56 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005065/0.7104, allocations: 1.207 MB / 0.5472 GB, free: 68.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/0.7104, allocations: 4 kB / 0.5472 GB, free: 68.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001911/0.7124, allocations: 378.3 kB / 0.5476 GB, free: 67.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008885/0.7133, allocations: 140 kB / 0.5477 GB, free: 67.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/0.7283, allocations: 7.876 MB / 0.5554 GB, free: 59.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.7287, allocations: 0.8168 MB / 0.5562 GB, free: 58.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001001/0.7297, allocations: 91.36 kB / 0.5563 GB, free: 58.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005816/0.7303, allocations: 119.4 kB / 0.5564 GB, free: 58.65 MB / 362.7 MB Notification: Performance of SimCode: time 1.403e-06/0.7303, allocations: 0 / 0.5564 GB, free: 58.65 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04098/0.7713, allocations: 10.34 MB / 0.5665 GB, free: 48.35 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002395/0.7716, allocations: 201.3 kB / 0.5667 GB, free: 48.11 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/3.617, allocations: 0 / 0.5667 GB, free: 48.11 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