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.00101/0.00101, allocations: 197 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.4/1.4, 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.0009943/0.0009943, allocations: 88.3 kB / 292.1 MB, free: 6.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.351e-05/3.363e-05, allocations: 3.938 kB / 350.6 MB, free: 2.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1195, allocations: 51.49 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4046/0.5242, allocations: 81.49 MB / 483.6 MB, free: 7.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/0.5245, allocations: 69.84 kB / 483.7 MB, free: 7.961 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02529/0.5499, allocations: 6.594 MB / 490.3 MB, free: 2.418 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.155e-06/0.5499, allocations: 0 / 490.3 MB, free: 2.418 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.406e-05/0.55, allocations: 12 kB / 490.3 MB, free: 2.406 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.00141/0.5514, allocations: 0.5813 MB / 490.9 MB, free: 1.809 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.484e-05/0.5515, allocations: 8.031 kB / 490.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.5516, allocations: 71.22 kB / 490.9 MB, free: 1.742 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.652e-05/0.5517, allocations: 39.02 kB / 491 MB, free: 1.707 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.5521, allocations: 264 kB / 491.2 MB, free: 1.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002537/0.5524, allocations: 148.2 kB / 491.4 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.686e-05/0.5525, allocations: 26.88 kB / 491.4 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.5536, allocations: 481.9 kB / 491.9 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.5537, allocations: 7.906 kB / 491.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.132e-05/0.5537, allocations: 9.062 kB / 491.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.5537, allocations: 8 kB / 491.9 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009573/0.5547, allocations: 418.5 kB / 492.3 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002008/0.5567, allocations: 1.016 MB / 493.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.5581, allocations: 422 kB / 493.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004844/0.5586, allocations: 204.5 kB / 493.9 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.48e-05/0.5587, allocations: 11.98 kB / 494 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.5588, allocations: 42.56 kB / 494 MB, free: 15.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.475e-06/0.5588, allocations: 0 / 494 MB, free: 15.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.01176/0.5706, allocations: 2.069 MB / 496.1 MB, free: 12.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001589/0.5708, allocations: 152.9 kB / 496.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000295/0.5711, allocations: 182.5 kB / 496.4 MB, free: 12.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000114/0.5712, allocations: 33.7 kB / 496.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.5714, allocations: 146.7 kB / 496.6 MB, free: 12.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000293/0.5717, allocations: 189.3 kB / 496.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.5718, allocations: 12 kB / 496.8 MB, free: 12.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.572, allocations: 342.8 kB / 497.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.5732, allocations: 485.5 kB / 497.6 MB, free: 11.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/0.5745, allocations: 0.6496 MB / 498.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.5756, allocations: 435.1 kB / 498.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.5756, allocations: 0 / 498.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002637/0.5783, allocations: 1.1 MB / 499.7 MB, free: 9.168 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.5783, allocations: 11.98 kB / 499.8 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.5783, allocations: 4 kB / 499.8 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.945e-05/0.5784, allocations: 12.72 kB / 499.8 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/0.5802, allocations: 235.6 kB / 0.4883 GB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.66e-05/0.5803, allocations: 19.7 kB / 0.4883 GB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.5816, allocations: 125.8 kB / 0.4884 GB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.5817, allocations: 36 kB / 0.4885 GB, free: 8.738 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.0003352/0.5821, allocations: 140.8 kB / 0.4886 GB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004673/0.5825, allocations: 149.1 kB / 0.4887 GB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002791/0.5828, allocations: 71.02 kB / 0.4888 GB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.5828, allocations: 8 kB / 0.4888 GB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.759e-05/0.5829, allocations: 3.953 kB / 0.4888 GB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.5829, allocations: 3.984 kB / 0.4888 GB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005771/0.5887, allocations: 2.009 MB / 0.4908 GB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-05/0.5887, allocations: 12 kB / 0.4908 GB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.5899, allocations: 200.2 kB / 0.491 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.382e-05/0.59, allocations: 15.98 kB / 0.491 GB, free: 5.938 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-05/0.5901, allocations: 28 kB / 0.491 GB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.457e-05/0.5901, allocations: 19.94 kB / 0.491 GB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.523e-05/0.5902, allocations: 23.83 kB / 0.4911 GB, free: 5.867 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003007/0.5932, allocations: 1.755 MB / 0.4928 GB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003249/0.5935, allocations: 164.6 kB / 0.4929 GB, free: 3.504 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.5937, allocations: 29.8 kB / 0.493 GB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009776/0.5946, allocations: 95.97 kB / 0.4931 GB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002985/0.595, allocations: 103.7 kB / 0.4932 GB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.033e-05/0.595, allocations: 36 kB / 0.4932 GB, free: 3.246 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002762/0.5953, allocations: 143.1 kB / 0.4933 GB, free: 3.109 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5953, allocations: 0 / 0.4933 GB, free: 3.109 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001213/0.5966, allocations: 128 kB / 0.4935 GB, free: 2.984 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.005432/0.602, allocations: 5.365 MB / 0.4987 GB, free: 13.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002433/0.6045, allocations: 0.8763 MB / 0.4995 GB, free: 12.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.6045, allocations: 0 / 0.4995 GB, free: 12.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006667/0.6052, allocations: 239.2 kB / 0.4998 GB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009084/0.6061, allocations: 118.2 kB / 0.4999 GB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.6096, allocations: 1.063 MB / 0.5009 GB, free: 10.87 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006358/0.6103, allocations: 0.8287 MB / 0.5017 GB, free: 10.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001062/0.6114, allocations: 91.36 kB / 0.5018 GB, free: 9.914 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005988/0.612, allocations: 115.4 kB / 0.5019 GB, free: 9.801 MB / 378.7 MB Notification: Performance of SimCode: time 1.152e-06/0.612, allocations: 0 / 0.5019 GB, free: 9.801 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0375/0.6495, allocations: 10.34 MB / 0.512 GB, free: 15.68 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/0.6498, allocations: 168.4 kB / 0.5122 GB, free: 15.46 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.213/2.863, allocations: 0 / 0.5122 GB, free: 15.46 MB / 394.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