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.002549/0.002549, allocations: 181.2 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.011/2.011, allocations: 205.2 MB / 219 MB, free: 9.203 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.001215/0.001215, allocations: 92.45 kB / 267.1 MB, free: 9.27 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.1212/0.1212, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.003e-05/4.021e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09328/0.09336, allocations: 50.37 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4644/0.5578, allocations: 82.16 MB / 0.5065 GB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003614/0.5583, allocations: 76.3 kB / 0.5065 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03579/0.5941, allocations: 7.121 MB / 0.5135 GB, free: 9.094 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.407e-06/0.5941, allocations: 0 / 0.5135 GB, free: 9.094 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.489e-05/0.5942, allocations: 11.62 kB / 0.5135 GB, free: 9.09 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001492/0.5957, allocations: 0.6088 MB / 0.5141 GB, free: 8.602 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.5958, allocations: 7.719 kB / 0.5141 GB, free: 8.602 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.552e-05/0.5959, allocations: 72.59 kB / 0.5142 GB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.783e-05/0.596, allocations: 46.38 kB / 0.5142 GB, free: 8.535 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004616/0.5964, allocations: 289.5 kB / 0.5145 GB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002611/0.5967, allocations: 147.3 kB / 0.5146 GB, free: 8.172 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.959e-05/0.5968, allocations: 33.69 kB / 0.5147 GB, free: 8.168 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.598, allocations: 0.509 MB / 0.5152 GB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.598, allocations: 0 / 0.5152 GB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.964e-05/0.5981, allocations: 10.41 kB / 0.5152 GB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.5981, allocations: 7.625 kB / 0.5152 GB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.5992, allocations: 416.9 kB / 0.5156 GB, free: 7.941 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.6014, allocations: 1.041 MB / 0.5166 GB, free: 7.223 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.6029, allocations: 423.2 kB / 0.517 GB, free: 7.082 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004842/0.6034, allocations: 208.2 kB / 0.5172 GB, free: 7.043 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.628e-05/0.6035, allocations: 11.41 kB / 0.5172 GB, free: 7.043 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.6035, allocations: 42.27 kB / 0.5173 GB, free: 7 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.657e-06/0.6036, allocations: 7.938 kB / 0.5173 GB, free: 6.992 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.0146/0.6182, allocations: 2.113 MB / 0.5193 GB, free: 5.832 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.102e-05/0.6183, allocations: 144.8 kB / 0.5195 GB, free: 5.664 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003596/0.6187, allocations: 242.2 kB / 0.5197 GB, free: 5.465 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.6188, allocations: 37.08 kB / 0.5197 GB, free: 5.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.496e-05/0.6189, allocations: 148.8 kB / 0.5199 GB, free: 5.297 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002224/0.6192, allocations: 189.8 kB / 0.5201 GB, free: 5.141 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.6193, allocations: 10.19 kB / 0.5201 GB, free: 5.141 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.833e-05/0.6194, allocations: 344.5 kB / 0.5204 GB, free: 4.809 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.6205, allocations: 484.7 kB / 0.5209 GB, free: 4.578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001255/0.6218, allocations: 0.6496 MB / 0.5215 GB, free: 4.105 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.6229, allocations: 432.2 kB / 0.5219 GB, free: 3.867 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.6229, allocations: 4 kB / 0.5219 GB, free: 3.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002903/0.6258, allocations: 1.107 MB / 0.523 GB, free: 3.191 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.6259, allocations: 8 kB / 0.523 GB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.6259, allocations: 8 kB / 0.523 GB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.277e-05/0.626, allocations: 11.98 kB / 0.523 GB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002647/0.6286, allocations: 227.3 kB / 0.5232 GB, free: 2.945 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.677e-05/0.6287, allocations: 15.89 kB / 0.5232 GB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/0.6306, allocations: 121.9 kB / 0.5234 GB, free: 2.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001721/0.6309, allocations: 26.31 kB / 0.5234 GB, free: 2.801 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.0003202/0.6312, allocations: 149.1 kB / 0.5235 GB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004593/0.6317, allocations: 164.8 kB / 0.5237 GB, free: 2.527 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/0.6319, allocations: 74.2 kB / 0.5238 GB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.6319, allocations: 8 kB / 0.5238 GB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.6319, allocations: 96 / 0.5238 GB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.632, allocations: 11.92 kB / 0.5238 GB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006326/0.6383, allocations: 2.037 MB / 0.5258 GB, free: 0.6914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.878e-05/0.6384, allocations: 12 kB / 0.5258 GB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001563/0.6399, allocations: 203.8 kB / 0.526 GB, free: 496 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.102e-05/0.64, allocations: 12 kB / 0.526 GB, free: 484 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-05/0.6401, allocations: 27.5 kB / 0.526 GB, free: 468 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.871e-05/0.6401, allocations: 23.92 kB / 0.526 GB, free: 444 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.179e-05/0.6401, allocations: 15.94 kB / 0.526 GB, free: 428 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.6434, allocations: 1.752 MB / 0.5278 GB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004059/0.6439, allocations: 188 kB / 0.5279 GB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.644, allocations: 29.23 kB / 0.528 GB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/0.6455, allocations: 93.61 kB / 0.5281 GB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003393/0.6459, allocations: 109.9 kB / 0.5282 GB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.91e-05/0.646, allocations: 35.36 kB / 0.5282 GB, free: 14.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003154/0.6463, allocations: 183.5 kB / 0.5284 GB, free: 14.03 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6463, allocations: 4 kB / 0.5284 GB, free: 14.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009337/0.6473, allocations: 124.4 kB / 0.5285 GB, free: 13.92 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.004485/0.6517, allocations: 5.362 MB / 0.5337 GB, free: 8.578 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002345/0.6541, allocations: 0.8772 MB / 0.5346 GB, free: 8.086 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/0.6542, allocations: 7.938 kB / 0.5346 GB, free: 8.078 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008079/0.655, allocations: 235.7 kB / 0.5348 GB, free: 7.906 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.6561, allocations: 137.4 kB / 0.5349 GB, free: 7.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/0.6603, allocations: 1.11 MB / 0.536 GB, free: 6.684 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006022/0.6609, allocations: 0.8366 MB / 0.5368 GB, free: 5.824 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001077/0.662, allocations: 92.14 kB / 0.5369 GB, free: 5.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006617/0.6627, allocations: 123.3 kB / 0.537 GB, free: 5.684 MB / 346.7 MB Notification: Performance of SimCode: time 2.194e-06/0.6627, allocations: 0 / 0.537 GB, free: 5.684 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0542/0.7169, allocations: 10.74 MB / 0.5475 GB, free: 10.94 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003368/0.7173, allocations: 176.5 kB / 0.5477 GB, free: 10.72 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.104/3.822, allocations: 0 / 0.5477 GB, free: 10.72 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