Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",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.001243/0.001243, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.331/1.331, allocations: 221.3 MB / 235.5 MB, free: 2.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008764/0.0008764, allocations: 98.14 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.516e-05/2.56e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1007, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3139/0.4146, allocations: 79.36 MB / 473.7 MB, free: 8.137 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.4149, allocations: 75.95 kB / 473.8 MB, free: 8.062 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01647/0.4314, allocations: 5.612 MB / 479.4 MB, free: 2.457 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.4314, allocations: 0 / 479.4 MB, free: 2.457 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.618e-05/0.4314, allocations: 4 kB / 479.4 MB, free: 2.453 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.001053/0.4325, allocations: 0.5454 MB / 479.9 MB, free: 1.863 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.4325, allocations: 8.031 kB / 479.9 MB, free: 1.855 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.987e-05/0.4327, allocations: 62.55 kB / 480 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.7e-05/0.4328, allocations: 31.72 kB / 480 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.4331, allocations: 247.3 kB / 480.3 MB, free: 1.469 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000209/0.4333, allocations: 137.6 kB / 480.4 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.748e-05/0.4334, allocations: 24 kB / 480.4 MB, free: 1.293 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005525/0.434, allocations: 315.7 kB / 480.7 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.434, allocations: 0 / 480.7 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.087e-05/0.434, allocations: 11.95 kB / 480.7 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.4341, allocations: 8 kB / 480.8 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006273/0.4347, allocations: 390.1 kB / 481.1 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.4365, allocations: 1.034 MB / 482.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005953/0.4371, allocations: 260.2 kB / 482.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.4373, allocations: 129.3 kB / 482.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.923e-05/0.4373, allocations: 4 kB / 482.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.4374, allocations: 42.56 kB / 482.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.4374, allocations: 0 / 482.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.007471/0.4448, allocations: 3.085 MB / 485.7 MB, free: 11.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.353e-05/0.4449, allocations: 67.77 kB / 485.7 MB, free: 11.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/0.4451, allocations: 185.4 kB / 485.9 MB, free: 11.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.267e-05/0.4452, allocations: 41.69 kB / 486 MB, free: 11.53 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.357e-05/0.4452, allocations: 140.7 kB / 486.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.4454, allocations: 169.5 kB / 486.3 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.4455, allocations: 16 kB / 486.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.4456, allocations: 342.8 kB / 486.6 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000502/0.4461, allocations: 333 kB / 486.9 MB, free: 10.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005641/0.4467, allocations: 382.5 kB / 487.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004507/0.4471, allocations: 263.2 kB / 487.6 MB, free: 9.883 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4471, allocations: 0 / 487.6 MB, free: 9.883 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001175/0.4483, allocations: 0.7212 MB / 488.3 MB, free: 9.156 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.4483, allocations: 4 kB / 488.3 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.4484, allocations: 11.95 kB / 488.3 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.4484, allocations: 4 kB / 488.3 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009904/0.4494, allocations: 183.9 kB / 488.5 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.4494, allocations: 7.938 kB / 488.5 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007253/0.4501, allocations: 107.9 kB / 488.6 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.936e-05/0.4502, allocations: 16 kB / 488.6 MB, free: 8.828 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.0001681/0.4504, allocations: 132.9 kB / 488.8 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.196e-05/0.4505, allocations: 27.72 kB / 488.8 MB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001391/0.4506, allocations: 51.09 kB / 488.8 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.4506, allocations: 11.94 kB / 488.8 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4506, allocations: 0 / 488.8 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.4506, allocations: 3.938 kB / 488.9 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003204/0.4539, allocations: 1.724 MB / 490.6 MB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.4539, allocations: 8 kB / 490.6 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006684/0.4546, allocations: 167.9 kB / 490.7 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.917e-05/0.4546, allocations: 12 kB / 490.8 MB, free: 6.531 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.351e-05/0.4546, allocations: 20 kB / 490.8 MB, free: 6.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.127e-05/0.4547, allocations: 15.92 kB / 490.8 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/0.4547, allocations: 19.92 kB / 490.8 MB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.4562, allocations: 1.325 MB / 492.1 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000175/0.4564, allocations: 156.7 kB / 492.3 MB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.865e-05/0.4565, allocations: 23.98 kB / 492.3 MB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005547/0.457, allocations: 91.92 kB / 492.4 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.4572, allocations: 95.66 kB / 492.5 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-05/0.4573, allocations: 24 kB / 492.5 MB, free: 4.406 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001357/0.4574, allocations: 152.2 kB / 492.7 MB, free: 4.258 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4574, allocations: 0 / 492.7 MB, free: 4.258 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004663/0.4579, allocations: 100 kB / 492.8 MB, free: 4.16 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.002522/0.4604, allocations: 4.296 MB / 497.1 MB, free: 15.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.4615, allocations: 0.6192 MB / 497.7 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4615, allocations: 3.938 kB / 497.7 MB, free: 14.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000416/0.4619, allocations: 229.8 kB / 497.9 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.4623, allocations: 45.91 kB / 498 MB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/0.4645, allocations: 0.9203 MB / 498.9 MB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004305/0.4649, allocations: 0.7925 MB / 499.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004782/0.4654, allocations: 82.92 kB / 499.7 MB, free: 12.74 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.4657, allocations: 91.41 kB / 499.8 MB, free: 12.65 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4657, allocations: 4 kB / 499.8 MB, free: 12.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02278/0.4885, allocations: 7.669 MB / 0.4956 GB, free: 5.117 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002355/0.4888, allocations: 164.1 kB / 0.4958 GB, free: 4.895 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.04/2.529, allocations: 0 / 0.4958 GB, free: 4.895 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat