Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",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.001015/0.001015, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.327/1.327, allocations: 221.4 MB / 235.5 MB, free: 2.949 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.0008124/0.0008123, allocations: 84.06 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.218e-05/2.253e-05, allocations: 0 / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09171/0.09175, allocations: 50.42 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3192/0.411, allocations: 80.84 MB / 475.2 MB, free: 6.613 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.4112, allocations: 71.95 kB / 475.2 MB, free: 6.543 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02111/0.4324, allocations: 7.237 MB / 482.5 MB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4324, allocations: 0 / 482.5 MB, free: 15.31 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.4324, allocations: 4 kB / 482.5 MB, free: 15.3 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001074/0.4335, allocations: 0.581 MB / 483.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.4336, allocations: 11.97 kB / 483.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.382e-05/0.4337, allocations: 70.53 kB / 483.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.558e-05/0.4338, allocations: 35.62 kB / 483.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.4341, allocations: 263.2 kB / 483.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.4343, allocations: 153.8 kB / 483.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.198e-05/0.4344, allocations: 32 kB / 483.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008276/0.4352, allocations: 0.5013 MB / 484.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.4353, allocations: 0 / 484.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.4353, allocations: 12 kB / 484.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.4353, allocations: 4 kB / 484.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006348/0.436, allocations: 411.8 kB / 484.5 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.4374, allocations: 1.03 MB / 485.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008685/0.4383, allocations: 415 kB / 486 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002923/0.4386, allocations: 207.8 kB / 486.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.97e-05/0.4386, allocations: 11.84 kB / 486.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.4387, allocations: 46.5 kB / 486.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.623e-06/0.4387, allocations: 3.938 kB / 486.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007508/0.4462, allocations: 2.075 MB / 488.3 MB, free: 9.188 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/0.4463, allocations: 149 kB / 488.5 MB, free: 9.012 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.4465, allocations: 178.6 kB / 488.6 MB, free: 8.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.335e-05/0.4466, allocations: 37.7 kB / 488.7 MB, free: 8.785 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.939e-05/0.4467, allocations: 149.4 kB / 488.8 MB, free: 8.633 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.4468, allocations: 189.3 kB / 489 MB, free: 8.445 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-05/0.4469, allocations: 16 kB / 489 MB, free: 8.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.447, allocations: 350.8 kB / 489.4 MB, free: 8.078 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007146/0.4477, allocations: 485.5 kB / 489.8 MB, free: 7.605 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008063/0.4486, allocations: 0.6424 MB / 490.5 MB, free: 6.887 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006558/0.4492, allocations: 435 kB / 490.9 MB, free: 6.461 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.4492, allocations: 0 / 490.9 MB, free: 6.461 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00175/0.451, allocations: 1.104 MB / 492 MB, free: 5.352 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.451, allocations: 8 kB / 492 MB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.451, allocations: 8.703 kB / 492 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.4511, allocations: 16 kB / 492 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.4524, allocations: 231.6 kB / 492.3 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.4524, allocations: 8 kB / 492.3 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009397/0.4534, allocations: 127.7 kB / 492.4 MB, free: 4.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.599e-05/0.4535, allocations: 32 kB / 492.4 MB, free: 4.93 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.0002287/0.4537, allocations: 148.7 kB / 492.6 MB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003142/0.454, allocations: 149.2 kB / 492.7 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001811/0.4542, allocations: 67.08 kB / 492.8 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.4542, allocations: 8.188 kB / 492.8 MB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.4542, allocations: 0 / 492.8 MB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.4542, allocations: 7.922 kB / 492.8 MB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003464/0.4577, allocations: 2.015 MB / 494.8 MB, free: 2.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.4577, allocations: 12 kB / 494.8 MB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007607/0.4585, allocations: 204.3 kB / 495 MB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-05/0.4585, allocations: 15.98 kB / 495 MB, free: 2.117 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.65e-05/0.4586, allocations: 24 kB / 495.1 MB, free: 2.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.487e-05/0.4586, allocations: 19.94 kB / 495.1 MB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.357e-06/0.4586, allocations: 15.94 kB / 495.1 MB, free: 2.059 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.4603, allocations: 1.76 MB / 496.9 MB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.4605, allocations: 164.6 kB / 497 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.4606, allocations: 27.98 kB / 497.1 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000604/0.4612, allocations: 99.92 kB / 497.2 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.4614, allocations: 107.7 kB / 497.3 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.466e-05/0.4614, allocations: 32 kB / 497.3 MB, free: 15.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001077/0.4615, allocations: 141.2 kB / 497.4 MB, free: 15.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4615, allocations: 0 / 497.4 MB, free: 15.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005886/0.4621, allocations: 124 kB / 497.5 MB, free: 15.17 MB / 378.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.003012/0.4652, allocations: 5.363 MB / 0.4911 GB, free: 9.484 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.4666, allocations: 0.8683 MB / 0.492 GB, free: 8.613 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.4666, allocations: 7.938 kB / 0.492 GB, free: 8.605 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004206/0.4671, allocations: 242.6 kB / 0.4922 GB, free: 8.371 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005758/0.4676, allocations: 121.6 kB / 0.4923 GB, free: 8.254 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.47, allocations: 1.059 MB / 0.4934 GB, free: 7.023 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.4704, allocations: 0.8207 MB / 0.4942 GB, free: 6.176 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005564/0.4709, allocations: 95.34 kB / 0.4943 GB, free: 6.078 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003627/0.4713, allocations: 111.4 kB / 0.4944 GB, free: 5.969 MB / 378.7 MB Notification: Performance of SimCode: time 7.32e-07/0.4713, allocations: 4 kB / 0.4944 GB, free: 5.965 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.4937, allocations: 10.39 MB / 0.5045 GB, free: 11.7 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/0.4939, allocations: 173 kB / 0.5047 GB, free: 11.47 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.607, allocations: 0.9844 kB / 0.5047 GB, free: 11.47 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat