Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.619/1.619, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008775/0.0008772, allocations: 102.2 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002285/0.0002285, allocations: 8 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2061, allocations: 50.39 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09886/0.305, allocations: 80.91 MB / 482.5 MB, free: 15.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.3052, allocations: 71.97 kB / 482.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02172/0.327, allocations: 7.256 MB / 489.8 MB, free: 8.203 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.327, allocations: 3.938 kB / 489.8 MB, free: 8.199 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.062e-05/0.327, allocations: 7.938 kB / 489.8 MB, free: 8.191 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.001319/0.3284, allocations: 0.5926 MB / 490.4 MB, free: 7.551 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.3284, allocations: 8.031 kB / 490.4 MB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001277/0.3286, allocations: 82.47 kB / 490.5 MB, free: 7.453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.3287, allocations: 35.62 kB / 490.5 MB, free: 7.418 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004529/0.3291, allocations: 267.1 kB / 490.8 MB, free: 7.113 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.3294, allocations: 145.7 kB / 490.9 MB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.559e-05/0.3294, allocations: 28 kB / 491 MB, free: 6.926 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.3307, allocations: 0.5752 MB / 491.5 MB, free: 6.328 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.3308, allocations: 0 / 491.5 MB, free: 6.328 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.916e-05/0.3308, allocations: 12 kB / 491.5 MB, free: 6.316 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.3308, allocations: 8 kB / 491.6 MB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.3322, allocations: 0.5464 MB / 492.1 MB, free: 5.762 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.3337, allocations: 1.022 MB / 493.1 MB, free: 4.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.3352, allocations: 0.5026 MB / 493.6 MB, free: 4.121 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.645e-05/0.3353, allocations: 8.344 kB / 493.6 MB, free: 4.113 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.3353, allocations: 38.56 kB / 493.7 MB, free: 4.066 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.565e-06/0.3353, allocations: 7.938 kB / 493.7 MB, free: 4.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.0436/0.3789, allocations: 6.766 MB / 0.4887 GB, free: 13.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.3791, allocations: 144.9 kB / 0.4889 GB, free: 13.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000221/0.3793, allocations: 187.4 kB / 0.489 GB, free: 12.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.651e-05/0.3794, allocations: 41.7 kB / 0.4891 GB, free: 12.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.3795, allocations: 141.5 kB / 0.4892 GB, free: 12.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002234/0.3798, allocations: 193.3 kB / 0.4894 GB, free: 12.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.832e-05/0.3798, allocations: 16 kB / 0.4894 GB, free: 12.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.38, allocations: 346.8 kB / 0.4897 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001646/0.3817, allocations: 0.6578 MB / 0.4904 GB, free: 11.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001735/0.3834, allocations: 0.8355 MB / 0.4912 GB, free: 10.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/0.3849, allocations: 0.6038 MB / 0.4918 GB, free: 10 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3849, allocations: 0 / 0.4918 GB, free: 10 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003567/0.3885, allocations: 1.486 MB / 0.4932 GB, free: 8.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.3886, allocations: 10.81 kB / 0.4932 GB, free: 8.504 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.3886, allocations: 7.938 kB / 0.4933 GB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.929e-05/0.3886, allocations: 12 kB / 0.4933 GB, free: 8.484 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.3901, allocations: 227.8 kB / 0.4935 GB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-05/0.3901, allocations: 12 kB / 0.4935 GB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.3912, allocations: 123.7 kB / 0.4936 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.06e-05/0.3913, allocations: 35.92 kB / 0.4936 GB, free: 8.094 MB / 378.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.0003685/0.3917, allocations: 188.5 kB / 0.4938 GB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003376/0.392, allocations: 149.2 kB / 0.494 GB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001849/0.3922, allocations: 67.3 kB / 0.494 GB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.397e-06/0.3922, allocations: 8 kB / 0.494 GB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.3922, allocations: 0 / 0.494 GB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.3922, allocations: 11.98 kB / 0.4941 GB, free: 7.668 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005111/0.3974, allocations: 2.304 MB / 0.4963 GB, free: 5.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/0.3974, allocations: 12 kB / 0.4963 GB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007973/0.3982, allocations: 204.6 kB / 0.4965 GB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.916e-05/0.3982, allocations: 16.23 kB / 0.4965 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.689e-05/0.3983, allocations: 24 kB / 0.4966 GB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.454e-05/0.3983, allocations: 15.94 kB / 0.4966 GB, free: 4.914 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.359e-05/0.3983, allocations: 19.94 kB / 0.4966 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003583/0.4019, allocations: 2.196 MB / 0.4987 GB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.4022, allocations: 168.5 kB / 0.4989 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.131e-05/0.4022, allocations: 27.98 kB / 0.4989 GB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006314/0.4029, allocations: 104.1 kB / 0.499 GB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.4031, allocations: 103.7 kB / 0.4991 GB, free: 1.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-05/0.4032, allocations: 35.89 kB / 0.4991 GB, free: 1.824 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001357/0.4033, allocations: 148.1 kB / 0.4993 GB, free: 1.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4033, allocations: 0 / 0.4993 GB, free: 1.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007112/0.404, allocations: 132 kB / 0.4994 GB, free: 1.551 MB / 378.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.1829/0.5869, allocations: 5.782 MB / 0.5051 GB, free: 99.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002876/0.5898, allocations: 1.199 MB / 0.5062 GB, free: 99.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/0.5899, allocations: 5.031 kB / 0.5062 GB, free: 99.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.591, allocations: 383 kB / 0.5066 GB, free: 99.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006219/0.5916, allocations: 125 kB / 0.5067 GB, free: 99.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008089/0.5997, allocations: 7.872 MB / 0.5144 GB, free: 93.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.6, allocations: 0.822 MB / 0.5152 GB, free: 92.65 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005895/0.6006, allocations: 91.47 kB / 0.5153 GB, free: 92.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/0.6009, allocations: 112.3 kB / 0.5154 GB, free: 92.54 MB / 378.7 MB Notification: Performance of SimCode: time 7.114e-06/0.6009, allocations: 2.656 kB / 0.5154 GB, free: 92.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0199/0.6209, allocations: 10.33 MB / 0.5255 GB, free: 85.58 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001225/0.621, allocations: 195 kB / 0.5257 GB, free: 85.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.219/2.84, allocations: 0 / 0.5257 GB, free: 85.34 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat