Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 96.64 kB / 16.3 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 180.2 kB / 17.2 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.2 MB / 241.1 MB, free: 14.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002765, allocations: 7.984 kB / 300.8 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1083, allocations: 50.41 MB / 351.2 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002904/0.1113, allocations: 1.961 MB / 353.2 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.1128, allocations: 0.7993 MB / 354 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001943/0.1131, allocations: 11.94 kB / 354 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002472/0.1133, allocations: 35.77 kB / 354 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002094/0.1135, allocations: 59.81 kB / 354.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005871/0.1141, allocations: 166.3 kB / 354.2 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000306/0.1145, allocations: 236 kB / 354.5 MB, free: 432 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.1146, allocations: 82.11 kB / 354.6 MB, free: 352 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.1149, allocations: 127.5 kB / 354.7 MB, free: 224 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.1151, allocations: 159.4 kB / 354.8 MB, free: 64 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.108e-05/0.1151, allocations: 16 kB / 354.9 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.301e-05/0.1152, allocations: 16 kB / 354.9 MB, free: 32 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.1153, allocations: 87.7 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.411e-05/0.1154, allocations: 73.52 kB / 355 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002527/0.1157, allocations: 251.7 kB / 355.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.1157, allocations: 4 kB / 355.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.338e-06/0.1157, allocations: 3.984 kB / 355.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1157, allocations: 0 / 355.3 MB, free: 15.61 MB / 302.1 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.001248/0.1169, allocations: 0.6351 MB / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.117, allocations: 8.031 kB / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.1171, allocations: 74.53 kB / 356 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.909e-05/0.1172, allocations: 43.53 kB / 356 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.1176, allocations: 290 kB / 356.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/0.1178, allocations: 145.7 kB / 356.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.541e-05/0.1179, allocations: 32 kB / 356.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.1191, allocations: 0.5815 MB / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.1192, allocations: 7.984 kB / 357.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.404e-05/0.1192, allocations: 8 kB / 357.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1192, allocations: 8 kB / 357.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.1207, allocations: 0.5385 MB / 357.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.1223, allocations: 1.022 MB / 358.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.1239, allocations: 0.5147 MB / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.589e-05/0.124, allocations: 4.188 kB / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.124, allocations: 46.77 kB / 359.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.236e-06/0.124, allocations: 0 / 359.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03973/0.1638, allocations: 6.805 MB / 366 MB, free: 4.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.1639, allocations: 141 kB / 366.2 MB, free: 4.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.1642, allocations: 262.5 kB / 366.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.177e-05/0.1643, allocations: 33.7 kB / 366.5 MB, free: 4.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.292e-05/0.1644, allocations: 149.5 kB / 366.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.1646, allocations: 193.3 kB / 366.8 MB, free: 3.773 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.997e-05/0.1647, allocations: 20 kB / 366.8 MB, free: 3.754 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1649, allocations: 342.8 kB / 367.1 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00161/0.1665, allocations: 0.65 MB / 367.8 MB, free: 2.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00173/0.1682, allocations: 0.8276 MB / 368.6 MB, free: 1.859 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/0.1698, allocations: 0.606 MB / 369.2 MB, free: 1.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1698, allocations: 0 / 369.2 MB, free: 1.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1912/0.361, allocations: 1.461 MB / 370.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.3611, allocations: 7.719 kB / 370.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.203e-05/0.3611, allocations: 8.625 kB / 370.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.336e-05/0.3612, allocations: 10.73 kB / 370.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/0.3627, allocations: 229 kB / 370.9 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.052e-05/0.3627, allocations: 14.5 kB / 371 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.3637, allocations: 123.9 kB / 371.1 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.405e-05/0.3638, allocations: 32.7 kB / 371.1 MB, free: 24.85 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003642/0.3642, allocations: 189.6 kB / 371.3 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000328/0.3646, allocations: 162.4 kB / 371.5 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001685/0.3647, allocations: 68 kB / 371.5 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.3648, allocations: 7.922 kB / 371.5 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.3648, allocations: 1.344 kB / 371.5 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.3648, allocations: 4.609 kB / 371.5 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005444/0.3702, allocations: 2.311 MB / 373.8 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.339e-05/0.3703, allocations: 9.656 kB / 373.9 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008543/0.3712, allocations: 204.2 kB / 374 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.878e-05/0.3712, allocations: 15.53 kB / 374.1 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.549e-05/0.3712, allocations: 25.89 kB / 374.1 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.096e-05/0.3713, allocations: 22.28 kB / 374.1 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/0.3713, allocations: 14.84 kB / 374.1 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/0.3747, allocations: 2.186 MB / 376.3 MB, free: 22.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002986/0.3751, allocations: 180.3 kB / 376.5 MB, free: 22.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.726e-05/0.3752, allocations: 31.23 kB / 376.5 MB, free: 22.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006234/0.3758, allocations: 106.6 kB / 376.6 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.376, allocations: 96.02 kB / 376.7 MB, free: 22.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.212e-05/0.376, allocations: 35.52 kB / 376.8 MB, free: 22.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001735/0.3762, allocations: 183.1 kB / 376.9 MB, free: 22.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3762, allocations: 0 / 376.9 MB, free: 22.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007293/0.377, allocations: 123.8 kB / 377.1 MB, free: 22.2 MB / 302.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.003968/0.3809, allocations: 5.774 MB / 382.8 MB, free: 16.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003046/0.384, allocations: 1.186 MB / 384 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/0.3841, allocations: 3.188 kB / 384 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.3852, allocations: 378.9 kB / 384.4 MB, free: 16.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008047/0.386, allocations: 136.3 kB / 384.5 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.3962, allocations: 7.959 MB / 392.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004831/0.3968, allocations: 0.8387 MB / 393.3 MB, free: 9.578 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006524/0.3974, allocations: 97.52 kB / 393.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003578/0.3978, allocations: 127.2 kB / 393.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3978, allocations: 0 / 393.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.4201, allocations: 10.6 MB / 404.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001356/0.4203, allocations: 198.9 kB / 404.3 MB, free: 2.793 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.992/2.412, allocations: 3.828 kB / 404.3 MB, free: 2.793 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat does not exist to compare? outputFormat=mat