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.001025/0.001025, allocations: 197.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, allocations: 227.2 MB / 245 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009743/0.0009743, allocations: 96.16 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002219/0.000222, allocations: 4 kB / 358 MB, free: 9.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2063/0.2065, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0886/0.2952, allocations: 80.24 MB / 489.7 MB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.2954, allocations: 75.95 kB / 489.8 MB, free: 10.26 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01561/0.3111, allocations: 5.685 MB / 495.5 MB, free: 4.582 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3111, allocations: 0 / 495.5 MB, free: 4.582 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.3111, allocations: 12 kB / 495.5 MB, free: 4.57 MB / 362.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.0008625/0.312, allocations: 0.565 MB / 496.1 MB, free: 3.957 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.312, allocations: 8.031 kB / 496.1 MB, free: 3.949 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.714e-05/0.3121, allocations: 58.55 kB / 496.1 MB, free: 3.883 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.379e-05/0.3122, allocations: 39.7 kB / 496.2 MB, free: 3.844 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.3124, allocations: 242.2 kB / 496.4 MB, free: 3.566 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001779/0.3126, allocations: 145.6 kB / 496.6 MB, free: 3.402 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.929e-05/0.3127, allocations: 24 kB / 496.6 MB, free: 3.379 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007846/0.3135, allocations: 379.5 kB / 496.9 MB, free: 2.996 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.3135, allocations: 4 kB / 497 MB, free: 2.992 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.3135, allocations: 8 kB / 497 MB, free: 2.984 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.3136, allocations: 8 kB / 497 MB, free: 2.977 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.3148, allocations: 0.5213 MB / 497.5 MB, free: 2.457 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.3163, allocations: 1.023 MB / 498.5 MB, free: 1.367 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009327/0.3173, allocations: 344.9 kB / 498.8 MB, free: 1.023 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.3173, allocations: 8 kB / 498.9 MB, free: 1.016 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.3174, allocations: 34.56 kB / 498.9 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 3.557e-06/0.3174, allocations: 3.984 kB / 498.9 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.02626/0.3436, allocations: 6.695 MB / 0.4937 GB, free: 10.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.3437, allocations: 55.84 kB / 0.4938 GB, free: 10.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.344, allocations: 193.9 kB / 0.494 GB, free: 9.914 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.446e-05/0.344, allocations: 29.7 kB / 0.494 GB, free: 9.879 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.15e-05/0.3441, allocations: 148.7 kB / 0.4941 GB, free: 9.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.3443, allocations: 177.3 kB / 0.4943 GB, free: 9.555 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.566e-05/0.3443, allocations: 15.94 kB / 0.4943 GB, free: 9.539 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3444, allocations: 346.7 kB / 0.4947 GB, free: 9.191 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.3457, allocations: 0.493 MB / 0.4951 GB, free: 8.699 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.3469, allocations: 0.5568 MB / 0.4957 GB, free: 8.125 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.3481, allocations: 442 kB / 0.4961 GB, free: 7.695 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3481, allocations: 3.953 kB / 0.4961 GB, free: 7.691 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002579/0.3507, allocations: 1.069 MB / 0.4972 GB, free: 6.617 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3507, allocations: 8 kB / 0.4972 GB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3507, allocations: 4.031 kB / 0.4972 GB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.3508, allocations: 4 kB / 0.4972 GB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009438/0.3517, allocations: 187.7 kB / 0.4973 GB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.3517, allocations: 7.984 kB / 0.4974 GB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006875/0.3524, allocations: 103.9 kB / 0.4975 GB, free: 6.309 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.595e-05/0.3525, allocations: 16 kB / 0.4975 GB, free: 6.293 MB / 378.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 () * Number of clocked 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.0002173/0.3527, allocations: 157.7 kB / 0.4976 GB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.827e-05/0.3528, allocations: 31.67 kB / 0.4977 GB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.3529, allocations: 59.28 kB / 0.4977 GB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3529, allocations: 4 kB / 0.4977 GB, free: 6.031 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.353, allocations: 0 / 0.4977 GB, free: 6.031 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.353, allocations: 4 kB / 0.4977 GB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004012/0.357, allocations: 2.007 MB / 0.4997 GB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.357, allocations: 8 kB / 0.4997 GB, free: 3.844 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006504/0.3577, allocations: 171.8 kB / 0.4998 GB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.199e-05/0.3577, allocations: 12 kB / 0.4999 GB, free: 3.664 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.282e-05/0.3578, allocations: 23.95 kB / 0.4999 GB, free: 3.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.148e-05/0.3578, allocations: 15.92 kB / 0.4999 GB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.3578, allocations: 15.94 kB / 0.4999 GB, free: 3.609 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00292/0.3607, allocations: 1.757 MB / 0.5016 GB, free: 1.504 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.3609, allocations: 148.7 kB / 0.5018 GB, free: 1.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.361, allocations: 23.95 kB / 0.5018 GB, free: 1.316 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005396/0.3615, allocations: 99.91 kB / 0.5019 GB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.3617, allocations: 87.72 kB / 0.502 GB, free: 1.133 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.919e-05/0.3618, allocations: 24 kB / 0.502 GB, free: 1.109 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001523/0.3619, allocations: 152.3 kB / 0.5021 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3619, allocations: 0 / 0.5021 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004779/0.3624, allocations: 100 kB / 0.5022 GB, free: 0.8633 MB / 378.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 () * Number of clocked 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.162/0.5245, allocations: 4.725 MB / 0.5068 GB, free: 95.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002248/0.5268, allocations: 0.9334 MB / 0.5078 GB, free: 95.35 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.5268, allocations: 0 / 0.5078 GB, free: 95.35 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008977/0.5277, allocations: 378.1 kB / 0.5081 GB, free: 95.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.5281, allocations: 57.69 kB / 0.5082 GB, free: 95.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00653/0.5346, allocations: 3.932 MB / 0.512 GB, free: 93.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001958/0.5348, allocations: 0.7905 MB / 0.5128 GB, free: 92.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004464/0.5353, allocations: 77.28 kB / 0.5129 GB, free: 92.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002389/0.5355, allocations: 87.98 kB / 0.5129 GB, free: 92.51 MB / 378.7 MB Notification: Performance of SimCode: time 5.3e-06/0.5355, allocations: 7.406 kB / 0.513 GB, free: 92.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01622/0.5518, allocations: 7.626 MB / 0.5204 GB, free: 89.1 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001311/0.5519, allocations: 190.9 kB / 0.5206 GB, free: 88.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.473, allocations: 0 / 0.5206 GB, free: 88.86 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