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.001651/0.001652, allocations: 181.3 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 87.12 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002343/0.0002343, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2214/0.2217, allocations: 50.42 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1004/0.3221, allocations: 79.42 MB / 481 MB, free: 1.004 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.3224, allocations: 75.97 kB / 481.1 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01784/0.3403, allocations: 5.632 MB / 486.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3404, allocations: 0 / 486.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.802e-05/0.3404, allocations: 4 kB / 486.7 MB, free: 11.29 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.001119/0.3415, allocations: 0.5726 MB / 487.3 MB, free: 10.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.3416, allocations: 12.16 kB / 487.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.356e-05/0.3417, allocations: 62.48 kB / 487.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.335e-05/0.3418, allocations: 31.72 kB / 487.4 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.3421, allocations: 243.3 kB / 487.6 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.3424, allocations: 137.6 kB / 487.8 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.267e-05/0.3425, allocations: 24 kB / 487.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009196/0.3434, allocations: 383.5 kB / 488.2 MB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.3434, allocations: 0 / 488.2 MB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/0.3435, allocations: 11.95 kB / 488.2 MB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.3435, allocations: 8 kB / 488.2 MB, free: 9.695 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.3449, allocations: 0.5174 MB / 488.7 MB, free: 9.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.3469, allocations: 1.042 MB / 489.7 MB, free: 8.066 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.348, allocations: 345.3 kB / 490.1 MB, free: 7.723 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.654e-05/0.3481, allocations: 4 kB / 490.1 MB, free: 7.719 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.3481, allocations: 34.56 kB / 490.1 MB, free: 7.676 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.445e-06/0.3481, allocations: 0 / 490.1 MB, free: 7.676 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.03022/0.3783, allocations: 6.688 MB / 496.8 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.69e-05/0.3785, allocations: 59.78 kB / 496.9 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.3787, allocations: 193.9 kB / 497 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.3788, allocations: 37.7 kB / 497.1 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.596e-05/0.3789, allocations: 148.7 kB / 497.2 MB, free: 448 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.3791, allocations: 173.5 kB / 497.4 MB, free: 272 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.683e-05/0.3791, allocations: 12 kB / 497.4 MB, free: 260 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3793, allocations: 338.8 kB / 497.7 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/0.3806, allocations: 0.4969 MB / 498.2 MB, free: 15.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.3819, allocations: 0.5568 MB / 498.8 MB, free: 14.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.3831, allocations: 442 kB / 499.2 MB, free: 14.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3831, allocations: 0 / 499.2 MB, free: 14.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002767/0.3859, allocations: 1.072 MB / 0.4886 GB, free: 13.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.3859, allocations: 11.94 kB / 0.4886 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.386, allocations: 0 / 0.4886 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.386, allocations: 7.953 kB / 0.4886 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.387, allocations: 187.8 kB / 0.4888 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.387, allocations: 4 kB / 0.4888 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006976/0.3877, allocations: 107.9 kB / 0.4889 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.669e-05/0.3878, allocations: 16 kB / 0.4889 GB, free: 13.01 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.000297/0.3881, allocations: 169.6 kB / 0.489 GB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.627e-05/0.3882, allocations: 27.72 kB / 0.4891 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.3883, allocations: 51.25 kB / 0.4891 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.3884, allocations: 7.953 kB / 0.4891 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3884, allocations: 0 / 0.4891 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.3884, allocations: 7.984 kB / 0.4891 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004254/0.3926, allocations: 2.01 MB / 0.4911 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.3927, allocations: 8 kB / 0.4911 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00066/0.3933, allocations: 164.4 kB / 0.4913 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.395e-05/0.3934, allocations: 12 kB / 0.4913 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-05/0.3934, allocations: 20 kB / 0.4913 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.134e-05/0.3934, allocations: 15.94 kB / 0.4913 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.328e-06/0.3935, allocations: 15.92 kB / 0.4913 GB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003105/0.3966, allocations: 1.757 MB / 0.493 GB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.3968, allocations: 144.7 kB / 0.4932 GB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.513e-05/0.3969, allocations: 27.98 kB / 0.4932 GB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/0.3974, allocations: 91.92 kB / 0.4933 GB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.3976, allocations: 95.66 kB / 0.4934 GB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/0.3977, allocations: 24 kB / 0.4934 GB, free: 7.832 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001772/0.3979, allocations: 151.2 kB / 0.4936 GB, free: 7.684 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3979, allocations: 0 / 0.4936 GB, free: 7.684 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005054/0.3984, allocations: 104 kB / 0.4937 GB, free: 7.582 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.004135/0.4025, allocations: 4.725 MB / 0.4983 GB, free: 2.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002329/0.4049, allocations: 0.9352 MB / 0.4992 GB, free: 1.656 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.4049, allocations: 4 kB / 0.4992 GB, free: 1.652 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009655/0.4059, allocations: 373.7 kB / 0.4995 GB, free: 1.289 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.4063, allocations: 50.89 kB / 0.4996 GB, free: 1.242 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1492/0.5555, allocations: 3.933 MB / 0.5034 GB, free: 103.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.5558, allocations: 0.7914 MB / 0.5042 GB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005199/0.5563, allocations: 77.2 kB / 0.5043 GB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/0.5566, allocations: 91.03 kB / 0.5044 GB, free: 102.7 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5566, allocations: 3.156 kB / 0.5044 GB, free: 102.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01716/0.5737, allocations: 7.631 MB / 0.5118 GB, free: 100.4 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.004481/0.5782, allocations: 205.3 kB / 0.512 GB, free: 100.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.546, allocations: 0 / 0.512 GB, free: 100.1 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