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.0009052/0.0009052, 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.508/1.508, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0008256/0.0008257, allocations: 81.92 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.189e-05/2.183e-05, allocations: 0 / 337.1 MB, free: 9.957 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1132, allocations: 50.42 MB / 387.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3823/0.4955, allocations: 78.69 MB / 466.2 MB, free: 60 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/0.4958, allocations: 71.95 kB / 466.3 MB, free: 15.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01709/0.5129, allocations: 5.594 MB / 471.9 MB, free: 10.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.574e-06/0.513, allocations: 0 / 471.9 MB, free: 10.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.155e-05/0.513, allocations: 4 kB / 471.9 MB, free: 10.4 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.001181/0.5142, allocations: 0.5415 MB / 472.4 MB, free: 9.812 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/0.5143, allocations: 12.03 kB / 472.5 MB, free: 9.801 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.011e-05/0.5144, allocations: 31.72 kB / 472.5 MB, free: 9.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.5148, allocations: 239.4 kB / 472.7 MB, free: 9.492 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002254/0.515, allocations: 137.6 kB / 472.9 MB, free: 9.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/0.5151, allocations: 15.98 kB / 472.9 MB, free: 9.324 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000662/0.5157, allocations: 373 kB / 473.2 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000478/0.5162, allocations: 274.6 kB / 473.5 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.5162, allocations: 0 / 473.5 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.169e-05/0.5163, allocations: 7.953 kB / 473.5 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.5163, allocations: 4 kB / 473.5 MB, free: 8.664 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.5182, allocations: 0.9828 MB / 474.5 MB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005748/0.5188, allocations: 248.4 kB / 474.7 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.519, allocations: 125.3 kB / 474.9 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.838e-05/0.5191, allocations: 4.5 kB / 474.9 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.5191, allocations: 34.56 kB / 474.9 MB, free: 7.203 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.613e-06/0.5191, allocations: 0 / 474.9 MB, free: 7.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.007551/0.5267, allocations: 2.966 MB / 477.9 MB, free: 4.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.5267, allocations: 67.78 kB / 477.9 MB, free: 4.066 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.527, allocations: 185.3 kB / 478.1 MB, free: 3.879 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.527, allocations: 25.7 kB / 478.1 MB, free: 3.848 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.487e-05/0.5271, allocations: 148.7 kB / 478.3 MB, free: 3.699 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.5273, allocations: 165.5 kB / 478.5 MB, free: 3.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.54e-05/0.5273, allocations: 0 / 478.5 MB, free: 3.535 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.5275, allocations: 338.8 kB / 478.8 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004504/0.5279, allocations: 317 kB / 479.1 MB, free: 2.883 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004948/0.5284, allocations: 369.3 kB / 479.5 MB, free: 2.508 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/0.5288, allocations: 262 kB / 479.7 MB, free: 2.254 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5288, allocations: 0 / 479.7 MB, free: 2.254 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001065/0.5299, allocations: 0.6705 MB / 480.4 MB, free: 1.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.5299, allocations: 4 kB / 480.4 MB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.5299, allocations: 7.984 kB / 480.4 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.53, allocations: 4 kB / 480.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.531, allocations: 192.6 kB / 480.6 MB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.531, allocations: 0 / 480.6 MB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007067/0.5318, allocations: 103.8 kB / 480.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-05/0.5318, allocations: 20 kB / 480.7 MB, free: 1.254 MB / 346.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.0001667/0.532, allocations: 124.7 kB / 480.8 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008623/0.5329, allocations: 0.5154 MB / 481.3 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.524e-05/0.5329, allocations: 27.72 kB / 481.4 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/0.5331, allocations: 39.41 kB / 481.4 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.5331, allocations: 4 kB / 481.4 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.5331, allocations: 7.953 kB / 481.4 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.5331, allocations: 7.922 kB / 481.4 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/0.536, allocations: 1.615 MB / 483 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.5361, allocations: 11.98 kB / 483.1 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006636/0.5367, allocations: 164.3 kB / 483.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.74e-05/0.5368, allocations: 12 kB / 483.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.642e-05/0.5368, allocations: 12 kB / 483.2 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-05/0.5368, allocations: 15.92 kB / 483.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.03e-05/0.5368, allocations: 15.94 kB / 483.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.5382, allocations: 1.286 MB / 484.6 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001798/0.5384, allocations: 148.7 kB / 484.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.371e-05/0.5385, allocations: 15.98 kB / 484.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005369/0.539, allocations: 79.92 kB / 484.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.5392, allocations: 107.7 kB / 484.9 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/0.5392, allocations: 24 kB / 484.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001239/0.5394, allocations: 140.3 kB / 485.1 MB, free: 12.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5394, allocations: 0 / 485.1 MB, free: 12.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004899/0.5399, allocations: 80 kB / 485.1 MB, free: 12.29 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.002291/0.5422, allocations: 4.262 MB / 489.4 MB, free: 7.766 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008869/0.5431, allocations: 0.5792 MB / 490 MB, free: 7.188 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.5431, allocations: 0 / 490 MB, free: 7.188 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003502/0.5434, allocations: 212.6 kB / 490.2 MB, free: 6.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004266/0.5439, allocations: 49.52 kB / 490.2 MB, free: 6.934 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.5459, allocations: 0.8698 MB / 491.1 MB, free: 5.918 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.5463, allocations: 0.7884 MB / 491.9 MB, free: 5.102 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004703/0.5467, allocations: 75.25 kB / 492 MB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.547, allocations: 91.41 kB / 492.1 MB, free: 4.938 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.547, allocations: 0 / 492.1 MB, free: 4.938 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.5761, allocations: 7.267 MB / 499.3 MB, free: 13.71 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002341/0.5763, allocations: 153.5 kB / 499.5 MB, free: 13.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.907/2.484, allocations: 5.484 kB / 499.5 MB, free: 13.52 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