Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks",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.002517/0.002517, allocations: 182.9 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.13/2.13, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001635/0.001635, allocations: 98.8 kB / 270.3 MB, free: 13.36 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.1009/0.1009, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005455/0.0005454, allocations: 13.5 kB / 392.1 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08994/0.09053, allocations: 50.37 MB / 442.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.154/0.2446, allocations: 82.24 MB / 0.5124 GB, free: 8.477 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003021/0.245, allocations: 79.95 kB / 0.5125 GB, free: 8.398 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03549/0.2805, allocations: 7.142 MB / 0.5195 GB, free: 1.238 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2805, allocations: 4 kB / 0.5195 GB, free: 1.234 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.522e-05/0.2806, allocations: 7.938 kB / 0.5195 GB, free: 1.227 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001815/0.2824, allocations: 0.639 MB / 0.5201 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.2825, allocations: 8.031 kB / 0.5201 GB, free: 0.5312 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001234/0.2826, allocations: 78.53 kB / 0.5202 GB, free: 456 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.2827, allocations: 43.53 kB / 0.5202 GB, free: 412 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005618/0.2833, allocations: 294 kB / 0.5205 GB, free: 76 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2784/0.5617, allocations: 140.2 kB / 0.5206 GB, free: 83.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.5619, allocations: 34.59 kB / 0.5207 GB, free: 83.86 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002091/0.564, allocations: 0.5793 MB / 0.5212 GB, free: 83.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/0.5641, allocations: 1.375 kB / 0.5212 GB, free: 83.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.571e-05/0.5642, allocations: 14.58 kB / 0.5212 GB, free: 83.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.5642, allocations: 7.562 kB / 0.5213 GB, free: 83.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.567, allocations: 0.5399 MB / 0.5218 GB, free: 83.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.5694, allocations: 1.041 MB / 0.5228 GB, free: 83.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002648/0.5721, allocations: 0.5022 MB / 0.5233 GB, free: 83.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.5723, allocations: 7.969 kB / 0.5233 GB, free: 83.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.5723, allocations: 41.31 kB / 0.5233 GB, free: 83.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.847e-06/0.5723, allocations: 0 / 0.5233 GB, free: 83.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.08113/0.6535, allocations: 6.796 MB / 0.53 GB, free: 82.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.6537, allocations: 157.1 kB / 0.5301 GB, free: 82.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004436/0.6541, allocations: 237.6 kB / 0.5304 GB, free: 82.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.6543, allocations: 37.69 kB / 0.5304 GB, free: 82.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.384e-05/0.6544, allocations: 145.9 kB / 0.5305 GB, free: 82.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000244/0.6546, allocations: 194.2 kB / 0.5307 GB, free: 82.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.6548, allocations: 15.56 kB / 0.5307 GB, free: 82.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.309e-05/0.6549, allocations: 344.6 kB / 0.5311 GB, free: 81.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003212/0.6581, allocations: 0.6599 MB / 0.5317 GB, free: 81.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003155/0.6613, allocations: 0.8343 MB / 0.5325 GB, free: 81.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/0.6642, allocations: 0.6055 MB / 0.5331 GB, free: 81.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/0.6643, allocations: 4.25 kB / 0.5331 GB, free: 81.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.006558/0.6709, allocations: 1.488 MB / 0.5346 GB, free: 80.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.671, allocations: 7.781 kB / 0.5346 GB, free: 80.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.671, allocations: 11.44 kB / 0.5346 GB, free: 80.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.729e-05/0.671, allocations: 7.719 kB / 0.5346 GB, free: 80.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002678/0.6737, allocations: 231.2 kB / 0.5348 GB, free: 80.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.899e-05/0.6738, allocations: 17.84 kB / 0.5348 GB, free: 80.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.6756, allocations: 126.4 kB / 0.5349 GB, free: 80.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.6758, allocations: 30.97 kB / 0.535 GB, free: 80.82 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.000476/0.6763, allocations: 196 kB / 0.5352 GB, free: 80.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000465/0.6768, allocations: 161.3 kB / 0.5353 GB, free: 80.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002141/0.677, allocations: 67.44 kB / 0.5354 GB, free: 80.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.568e-05/0.6771, allocations: 7.844 kB / 0.5354 GB, free: 80.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-05/0.6771, allocations: 3.938 kB / 0.5354 GB, free: 80.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.6771, allocations: 3.281 kB / 0.5354 GB, free: 80.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008397/0.6855, allocations: 2.321 MB / 0.5377 GB, free: 78.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-05/0.6856, allocations: 12 kB / 0.5377 GB, free: 78.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00148/0.6871, allocations: 196.5 kB / 0.5379 GB, free: 78.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.257e-05/0.6871, allocations: 27.83 kB / 0.5379 GB, free: 78.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.383e-05/0.6872, allocations: 28 kB / 0.5379 GB, free: 78.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.811e-05/0.6872, allocations: 19.92 kB / 0.5379 GB, free: 78.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-05/0.6873, allocations: 18.33 kB / 0.538 GB, free: 78.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005975/0.6932, allocations: 2.193 MB / 0.5401 GB, free: 75.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003911/0.6937, allocations: 184.4 kB / 0.5403 GB, free: 75.63 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.6938, allocations: 31.98 kB / 0.5403 GB, free: 75.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.6949, allocations: 99.98 kB / 0.5404 GB, free: 75.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003072/0.6952, allocations: 107.6 kB / 0.5405 GB, free: 75.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-05/0.6953, allocations: 36.48 kB / 0.5405 GB, free: 75.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002622/0.6955, allocations: 190 kB / 0.5407 GB, free: 75.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6956, allocations: 0 / 0.5407 GB, free: 75.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000938/0.6965, allocations: 124 kB / 0.5408 GB, free: 75.06 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.006731/0.7033, allocations: 5.796 MB / 0.5465 GB, free: 68.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005131/0.7084, allocations: 1.198 MB / 0.5477 GB, free: 67.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.477e-05/0.7085, allocations: 4 kB / 0.5477 GB, free: 67.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001968/0.7105, allocations: 394.4 kB / 0.548 GB, free: 67.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.7116, allocations: 147.5 kB / 0.5482 GB, free: 67.22 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01546/0.727, allocations: 7.985 MB / 0.556 GB, free: 58.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.7275, allocations: 0.8405 MB / 0.5568 GB, free: 58.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001039/0.7285, allocations: 92.16 kB / 0.5569 GB, free: 57.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006214/0.7292, allocations: 119.4 kB / 0.557 GB, free: 57.88 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.7292, allocations: 4 kB / 0.557 GB, free: 57.87 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04173/0.7709, allocations: 10.67 MB / 0.5674 GB, free: 47.23 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.7712, allocations: 209.9 kB / 0.5676 GB, free: 46.98 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.75/3.521, allocations: 3.906 kB / 0.5676 GB, free: 46.98 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat does not exist to compare? outputFormat=mat