Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.00101, allocations: 92.52 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.149e-05/3.151e-05, allocations: 0 / 350.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1158, allocations: 51.47 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4346/0.5505, allocations: 80.17 MB / 482.3 MB, free: 9.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.5508, allocations: 68.8 kB / 482.4 MB, free: 9.234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02297/0.5738, allocations: 5.674 MB / 488 MB, free: 4.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.5739, allocations: 0 / 488 MB, free: 4.449 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.5739, allocations: 4 kB / 488 MB, free: 4.445 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001132/0.5751, allocations: 0.5483 MB / 488.6 MB, free: 3.875 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.5751, allocations: 12.03 kB / 488.6 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.654e-05/0.5752, allocations: 65.17 kB / 488.7 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.026e-05/0.5753, allocations: 31.72 kB / 488.7 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.5757, allocations: 233.8 kB / 488.9 MB, free: 3.523 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002572/0.576, allocations: 146.1 kB / 489.1 MB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.887e-05/0.5761, allocations: 26.48 kB / 489.1 MB, free: 3.359 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006859/0.5768, allocations: 306.9 kB / 489.4 MB, free: 3.145 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.5768, allocations: 6.75 kB / 489.4 MB, free: 3.141 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.547e-05/0.5769, allocations: 11.94 kB / 489.4 MB, free: 3.137 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.5769, allocations: 4 kB / 489.4 MB, free: 3.133 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009005/0.5778, allocations: 389.7 kB / 489.8 MB, free: 2.871 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.5801, allocations: 1.017 MB / 490.8 MB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008371/0.581, allocations: 267.1 kB / 491.1 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003289/0.5813, allocations: 131.2 kB / 491.2 MB, free: 1.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.776e-05/0.5814, allocations: 4.938 kB / 491.2 MB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.5815, allocations: 37.62 kB / 491.2 MB, free: 1.684 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.964e-06/0.5815, allocations: 0 / 491.2 MB, free: 1.684 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.00804/0.5895, allocations: 3.083 MB / 494.3 MB, free: 14.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.5896, allocations: 59.83 kB / 494.4 MB, free: 14.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/0.5898, allocations: 190.2 kB / 494.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.394e-05/0.5899, allocations: 33.7 kB / 494.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.591e-05/0.59, allocations: 152.7 kB / 494.7 MB, free: 14.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.5902, allocations: 177.4 kB / 494.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-05/0.5902, allocations: 12 kB / 494.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.5904, allocations: 339.5 kB / 495.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005392/0.5909, allocations: 329.1 kB / 495.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000593/0.5915, allocations: 378.5 kB / 496 MB, free: 13 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004981/0.592, allocations: 271.2 kB / 496.2 MB, free: 12.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.592, allocations: 0 / 496.2 MB, free: 12.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00133/0.5934, allocations: 0.7212 MB / 496.9 MB, free: 12.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.5934, allocations: 4 kB / 496.9 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.5934, allocations: 1.875 kB / 496.9 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.764e-05/0.5935, allocations: 4 kB / 496.9 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.5945, allocations: 187.9 kB / 497.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.722e-05/0.5946, allocations: 4 kB / 497.1 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007297/0.5953, allocations: 115.9 kB / 497.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.24e-05/0.5954, allocations: 19.98 kB / 497.3 MB, free: 11.68 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (66): * Single equations (assignments): 66 * 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.0001955/0.5956, allocations: 132.8 kB / 497.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.816e-05/0.5957, allocations: 23.72 kB / 497.4 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.5959, allocations: 55.08 kB / 497.5 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.5959, allocations: 8 kB / 497.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.5959, allocations: 0 / 497.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.5959, allocations: 0 / 497.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003461/0.5994, allocations: 1.727 MB / 499.2 MB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.5994, allocations: 11.98 kB / 499.2 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007035/0.6001, allocations: 161.3 kB / 499.4 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.569e-05/0.6001, allocations: 12 kB / 499.4 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.778e-05/0.6002, allocations: 25.92 kB / 499.4 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.586e-05/0.6002, allocations: 19.92 kB / 499.4 MB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/0.6002, allocations: 11.94 kB / 499.4 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.6018, allocations: 1.331 MB / 0.489 GB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.602, allocations: 152.7 kB / 0.4892 GB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/0.6021, allocations: 27.98 kB / 0.4892 GB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005596/0.6027, allocations: 93.23 kB / 0.4893 GB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.6029, allocations: 91.7 kB / 0.4894 GB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.046e-05/0.6029, allocations: 24 kB / 0.4894 GB, free: 7.262 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001574/0.6031, allocations: 150.4 kB / 0.4896 GB, free: 7.117 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6031, allocations: 3.938 kB / 0.4896 GB, free: 7.113 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004691/0.6036, allocations: 104 kB / 0.4897 GB, free: 7.012 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * 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 (53): * Single equations (assignments): 53 * 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.002812/0.6064, allocations: 4.299 MB / 0.4939 GB, free: 2.457 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.6074, allocations: 0.6194 MB / 0.4945 GB, free: 1.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.6074, allocations: 8.062 kB / 0.4945 GB, free: 1.832 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004446/0.6079, allocations: 223 kB / 0.4947 GB, free: 1.617 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004168/0.6083, allocations: 55.86 kB / 0.4947 GB, free: 1.566 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.6103, allocations: 0.9162 MB / 0.4956 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.6108, allocations: 0.7887 MB / 0.4964 GB, free: 15.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004723/0.6112, allocations: 78.88 kB / 0.4965 GB, free: 15.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002844/0.6115, allocations: 99.41 kB / 0.4966 GB, free: 15.52 MB / 378.7 MB Notification: Performance of SimCode: time 6.32e-07/0.6115, allocations: 0 / 0.4966 GB, free: 15.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.022/0.6335, allocations: 7.684 MB / 0.5041 GB, free: 8.086 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002463/0.6338, allocations: 162.8 kB / 0.5042 GB, free: 7.863 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.146/2.779, allocations: 0 / 0.5042 GB, free: 7.863 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat