Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001101/0.001101, allocations: 97.91 kB / 286.7 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.482e-05/2.493e-05, allocations: 4 kB / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1186, allocations: 51.48 MB / 395.3 MB, free: 4.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3605/0.4792, allocations: 80.83 MB / 476.1 MB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003416/0.4796, allocations: 65.52 kB / 476.2 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01803/0.4976, allocations: 6.559 MB / 482.7 MB, free: 6.625 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4977, allocations: 0 / 482.7 MB, free: 6.625 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.4977, allocations: 4 kB / 482.7 MB, free: 6.621 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0009683/0.4987, allocations: 0.5935 MB / 483.3 MB, free: 6.008 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.4987, allocations: 8.031 kB / 483.3 MB, free: 6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.269e-05/0.4988, allocations: 31.72 kB / 483.3 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003892/0.4992, allocations: 264 kB / 483.6 MB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001867/0.4994, allocations: 132.3 kB / 483.7 MB, free: 5.551 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.231e-05/0.4995, allocations: 27.11 kB / 483.8 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006334/0.5001, allocations: 403.6 kB / 484.2 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006954/0.5008, allocations: 440.3 kB / 484.6 MB, free: 4.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.5008, allocations: 3.906 kB / 484.6 MB, free: 4.906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.5009, allocations: 0 / 484.6 MB, free: 4.906 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.5009, allocations: 9.5 kB / 484.6 MB, free: 4.898 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.5022, allocations: 0.9539 MB / 485.6 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007844/0.503, allocations: 401.2 kB / 485.9 MB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.5033, allocations: 196.4 kB / 486.1 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.792e-05/0.5033, allocations: 7.5 kB / 486.1 MB, free: 3.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.5033, allocations: 38 kB / 486.2 MB, free: 3.547 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.804e-06/0.5033, allocations: 4 kB / 486.2 MB, free: 3.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.006803/0.5102, allocations: 1.991 MB / 488.2 MB, free: 2.105 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.127e-05/0.5103, allocations: 144.1 kB / 488.3 MB, free: 1.934 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.5105, allocations: 182.7 kB / 488.5 MB, free: 1.773 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.063e-05/0.5106, allocations: 29.7 kB / 488.5 MB, free: 1.738 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.953e-05/0.5107, allocations: 143.3 kB / 488.7 MB, free: 1.613 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.5108, allocations: 178.6 kB / 488.8 MB, free: 1.461 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.874e-05/0.5109, allocations: 0 / 488.8 MB, free: 1.461 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.241e-05/0.511, allocations: 345.2 kB / 489.2 MB, free: 1.125 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005786/0.5116, allocations: 464.1 kB / 489.6 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006141/0.5122, allocations: 0.6348 MB / 490.3 MB, free: 468 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004943/0.5127, allocations: 414.1 kB / 490.7 MB, free: 240 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.5127, allocations: 4 kB / 490.7 MB, free: 236 kB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001542/0.5143, allocations: 1.034 MB / 491.7 MB, free: 15.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.5143, allocations: 8 kB / 491.7 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.5143, allocations: 8.062 kB / 491.7 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.977e-05/0.5144, allocations: 12 kB / 491.7 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.5157, allocations: 234.5 kB / 492 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/0.5158, allocations: 12 kB / 492 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009248/0.5167, allocations: 111.7 kB / 492.1 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.737e-05/0.5168, allocations: 23.31 kB / 492.1 MB, free: 15.21 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.0002385/0.517, allocations: 128.1 kB / 492.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001464/0.5185, allocations: 0.9113 MB / 493.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.5186, allocations: 39.55 kB / 493.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001739/0.5188, allocations: 49.28 kB / 493.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.5188, allocations: 9.875 kB / 493.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.5188, allocations: 8 kB / 493.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.5189, allocations: 3.984 kB / 493.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003496/0.5224, allocations: 1.896 MB / 495.1 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/0.5224, allocations: 10.75 kB / 495.2 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007807/0.5232, allocations: 203.2 kB / 495.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.591e-05/0.5232, allocations: 16 kB / 495.4 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.51e-05/0.5233, allocations: 20 kB / 495.4 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.358e-05/0.5233, allocations: 15.94 kB / 495.4 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/0.5233, allocations: 19.92 kB / 495.4 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.5252, allocations: 1.701 MB / 497.1 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.5254, allocations: 170.7 kB / 497.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.868e-05/0.5255, allocations: 15.95 kB / 497.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000602/0.5261, allocations: 87.97 kB / 497.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.5263, allocations: 106.2 kB / 497.5 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-05/0.5263, allocations: 31.81 kB / 497.5 MB, free: 10.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001398/0.5265, allocations: 141.5 kB / 497.7 MB, free: 10.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5265, allocations: 0 / 497.7 MB, free: 10.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000702/0.5272, allocations: 100 kB / 497.8 MB, free: 10.11 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.003792/0.531, allocations: 5.293 MB / 0.4913 GB, free: 4.832 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.5323, allocations: 0.825 MB / 0.4921 GB, free: 4.379 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/0.5324, allocations: 1.781 kB / 0.4921 GB, free: 4.379 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004398/0.5328, allocations: 217.4 kB / 0.4923 GB, free: 4.207 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007513/0.5336, allocations: 107.4 kB / 0.4924 GB, free: 4.109 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.5361, allocations: 0.995 MB / 0.4934 GB, free: 2.945 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.5366, allocations: 0.8209 MB / 0.4942 GB, free: 2.098 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005942/0.5372, allocations: 87.38 kB / 0.4942 GB, free: 2.012 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003546/0.5375, allocations: 115.4 kB / 0.4944 GB, free: 1.898 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5375, allocations: 0 / 0.4944 GB, free: 1.898 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.5695, allocations: 9.901 MB / 0.504 GB, free: 8.043 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001983/0.5698, allocations: 160 kB / 0.5042 GB, free: 7.848 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.117/2.687, allocations: 0 / 0.5042 GB, free: 7.848 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat does not exist to compare? outputFormat=mat