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.00163/0.00163, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 221.5 MB / 230.3 MB, free: 7.531 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.001013/0.001013, allocations: 94.61 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.595e-05/1.598e-05, allocations: 0 / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.128, allocations: 50.41 MB / 387.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.4963, allocations: 80.18 MB / 467.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.4966, allocations: 71.97 kB / 467.8 MB, free: 14.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02135/0.5179, allocations: 7.187 MB / 475 MB, free: 7.316 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.518, allocations: 0 / 475 MB, free: 7.316 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.223e-05/0.518, allocations: 4 kB / 475 MB, free: 7.312 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00123/0.5193, allocations: 0.581 MB / 475.6 MB, free: 6.688 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.5193, allocations: 8.031 kB / 475.6 MB, free: 6.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.495e-05/0.5195, allocations: 43.62 kB / 475.6 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004052/0.5199, allocations: 271.1 kB / 475.9 MB, free: 6.328 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.5201, allocations: 138.6 kB / 476 MB, free: 6.176 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.541e-05/0.5202, allocations: 16 kB / 476 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000715/0.5209, allocations: 417.4 kB / 476.4 MB, free: 5.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007893/0.5217, allocations: 455.8 kB / 476.9 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.5217, allocations: 0 / 476.9 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.5217, allocations: 3.984 kB / 476.9 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.5218, allocations: 8 kB / 476.9 MB, free: 5.266 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.5233, allocations: 0.972 MB / 477.9 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008414/0.5242, allocations: 394.8 kB / 478.3 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.5244, allocations: 192 kB / 478.4 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.656e-05/0.5245, allocations: 15.92 kB / 478.5 MB, free: 3.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.5245, allocations: 46.42 kB / 478.5 MB, free: 3.535 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 2.044e-06/0.5246, allocations: 0 / 478.5 MB, free: 3.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.007211/0.5318, allocations: 1.99 MB / 480.5 MB, free: 1.539 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.886e-05/0.5319, allocations: 141 kB / 480.6 MB, free: 1.371 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.5321, allocations: 170.7 kB / 480.8 MB, free: 1.195 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.805e-05/0.5322, allocations: 29.7 kB / 480.8 MB, free: 1.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.931e-05/0.5323, allocations: 145.4 kB / 481 MB, free: 1.016 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.5325, allocations: 185.3 kB / 481.1 MB, free: 0.832 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.764e-05/0.5326, allocations: 0 / 481.1 MB, free: 0.832 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.5327, allocations: 342.8 kB / 481.5 MB, free: 500 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006601/0.5334, allocations: 469.5 kB / 481.9 MB, free: 32 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007434/0.5341, allocations: 0.6292 MB / 482.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006148/0.5347, allocations: 417.9 kB / 483 MB, free: 14.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.5348, allocations: 8 kB / 483 MB, free: 14.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001603/0.5364, allocations: 1.038 MB / 484 MB, free: 13.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.5364, allocations: 9.25 kB / 484 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.5364, allocations: 4 kB / 484 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.88e-05/0.5365, allocations: 15.95 kB / 484.1 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.5378, allocations: 227.7 kB / 484.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.55e-05/0.5378, allocations: 15.98 kB / 484.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.5389, allocations: 107.7 kB / 484.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.169e-05/0.539, allocations: 27.98 kB / 484.4 MB, free: 13.46 MB / 362.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.0002839/0.5393, allocations: 124.7 kB / 484.5 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001574/0.5408, allocations: 0.9099 MB / 485.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.541, allocations: 39.48 kB / 485.5 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001776/0.5412, allocations: 55.39 kB / 485.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.5412, allocations: 12.14 kB / 485.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.5412, allocations: 3.984 kB / 485.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.407e-06/0.5412, allocations: 3.984 kB / 485.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003472/0.5447, allocations: 1.896 MB / 487.5 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.5447, allocations: 12.03 kB / 487.5 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007629/0.5455, allocations: 199.7 kB / 487.7 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.624e-05/0.5455, allocations: 16 kB / 487.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.974e-05/0.5456, allocations: 23.94 kB / 487.7 MB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-05/0.5456, allocations: 23.92 kB / 487.7 MB, free: 9.969 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.185e-05/0.5456, allocations: 15.94 kB / 487.7 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.5473, allocations: 1.698 MB / 489.4 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.5475, allocations: 164.6 kB / 489.6 MB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.474e-05/0.5476, allocations: 15.98 kB / 489.6 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005954/0.5482, allocations: 91.92 kB / 489.7 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/0.5484, allocations: 107.6 kB / 489.8 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.122e-05/0.5484, allocations: 32 kB / 489.8 MB, free: 7.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001252/0.5486, allocations: 145.2 kB / 490 MB, free: 7.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5486, allocations: 0 / 490 MB, free: 7.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006485/0.5492, allocations: 104 kB / 490.1 MB, free: 7.168 MB / 362.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.002908/0.5522, allocations: 5.289 MB / 495.4 MB, free: 1.555 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.5534, allocations: 0.8239 MB / 496.2 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.5534, allocations: 3.938 kB / 496.2 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000378/0.5538, allocations: 223 kB / 496.4 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006538/0.5545, allocations: 105.9 kB / 496.5 MB, free: 420 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.5567, allocations: 0.9926 MB / 497.5 MB, free: 15.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004235/0.5572, allocations: 0.821 MB / 498.3 MB, free: 14.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005994/0.5578, allocations: 91.38 kB / 498.4 MB, free: 14.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/0.5581, allocations: 115.4 kB / 498.5 MB, free: 14.2 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5582, allocations: 0 / 498.5 MB, free: 14.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03486/0.593, allocations: 9.975 MB / 0.4966 GB, free: 4.25 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.5933, allocations: 158.2 kB / 0.4968 GB, free: 4.051 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/2.707, allocations: 0 / 0.4968 GB, free: 4.051 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