Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001054/0.001054, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.189/1.189, allocations: 227.2 MB / 245 MB, free: 7.625 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008799/0.0008798, allocations: 95.72 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001923/0.0001923, allocations: 4 kB / 358 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.1723, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0857/0.258, allocations: 81.72 MB / 491.2 MB, free: 8.883 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.2583, allocations: 73.22 kB / 491.3 MB, free: 8.812 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01998/0.2783, allocations: 7.307 MB / 498.6 MB, free: 1.496 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2783, allocations: 3.938 kB / 498.6 MB, free: 1.492 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.2783, allocations: 11.98 kB / 498.6 MB, free: 1.48 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.001005/0.2793, allocations: 0.5964 MB / 499.2 MB, free: 0.832 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2794, allocations: 12.03 kB / 499.2 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.197e-05/0.2795, allocations: 74.53 kB / 499.3 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.044e-05/0.2795, allocations: 35.62 kB / 499.3 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.2799, allocations: 267.1 kB / 499.6 MB, free: 412 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.2801, allocations: 149.7 kB / 499.7 MB, free: 244 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.461e-05/0.2801, allocations: 31.94 kB / 499.8 MB, free: 212 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.2813, allocations: 0.5737 MB / 0.4886 GB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.2813, allocations: 0 / 0.4886 GB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.338e-05/0.2813, allocations: 16 kB / 0.4886 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.2813, allocations: 4 kB / 0.4886 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.2827, allocations: 0.5542 MB / 0.4892 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.2841, allocations: 1.006 MB / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.2854, allocations: 0.509 MB / 0.4906 GB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.226e-05/0.2855, allocations: 16.08 kB / 0.4907 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.2855, allocations: 46.5 kB / 0.4907 GB, free: 13.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/0.2855, allocations: 0 / 0.4907 GB, free: 13.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.03942/0.3249, allocations: 6.754 MB / 0.4973 GB, free: 6.574 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.825e-05/0.3251, allocations: 152.8 kB / 0.4974 GB, free: 6.391 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.3253, allocations: 191.1 kB / 0.4976 GB, free: 6.195 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.523e-05/0.3253, allocations: 37.7 kB / 0.4977 GB, free: 6.152 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.094e-05/0.3254, allocations: 137.6 kB / 0.4978 GB, free: 6.012 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.3256, allocations: 197.3 kB / 0.498 GB, free: 5.816 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.356e-05/0.3257, allocations: 8 kB / 0.498 GB, free: 5.809 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.964e-05/0.3258, allocations: 346.8 kB / 0.4983 GB, free: 5.461 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/0.3272, allocations: 0.6539 MB / 0.499 GB, free: 4.805 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.3288, allocations: 0.8394 MB / 0.4998 GB, free: 3.887 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.3302, allocations: 0.6112 MB / 0.5004 GB, free: 3.273 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3302, allocations: 0 / 0.5004 GB, free: 3.273 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003188/0.3334, allocations: 1.483 MB / 0.5018 GB, free: 1.785 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.3334, allocations: 8 kB / 0.5018 GB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/0.3334, allocations: 4 kB / 0.5018 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.3335, allocations: 12 kB / 0.5018 GB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.3348, allocations: 231.7 kB / 0.5021 GB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.822e-05/0.3348, allocations: 16.23 kB / 0.5021 GB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009455/0.3358, allocations: 128.1 kB / 0.5022 GB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.916e-05/0.3359, allocations: 31.98 kB / 0.5022 GB, free: 1.363 MB / 378.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 () * Number of clocked states: 1 (PI.x) * 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.000266/0.3362, allocations: 189.6 kB / 0.5024 GB, free: 1.168 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002671/0.3364, allocations: 153.2 kB / 0.5026 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001514/0.3366, allocations: 67.25 kB / 0.5026 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.3366, allocations: 12 kB / 0.5026 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3366, allocations: 3.984 kB / 0.5026 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.3366, allocations: 0 / 0.5026 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1717/0.5083, allocations: 2.299 MB / 0.5049 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.132e-05/0.5084, allocations: 9.781 kB / 0.5049 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008938/0.5093, allocations: 200.9 kB / 0.5051 GB, free: 97.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/0.5093, allocations: 17.97 kB / 0.5051 GB, free: 97.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.677e-05/0.5094, allocations: 32.25 kB / 0.5051 GB, free: 97.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.825e-05/0.5094, allocations: 19.45 kB / 0.5052 GB, free: 97.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.234e-05/0.5094, allocations: 16.31 kB / 0.5052 GB, free: 97.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003183/0.5126, allocations: 2.195 MB / 0.5073 GB, free: 95.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.5128, allocations: 161.9 kB / 0.5075 GB, free: 95.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.844e-05/0.5129, allocations: 29.41 kB / 0.5075 GB, free: 95.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006639/0.5136, allocations: 106.2 kB / 0.5076 GB, free: 95.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.5138, allocations: 101.9 kB / 0.5077 GB, free: 95.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.76e-05/0.5139, allocations: 33.64 kB / 0.5077 GB, free: 95.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001567/0.514, allocations: 147.9 kB / 0.5079 GB, free: 95.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5141, allocations: 0 / 0.5079 GB, free: 95.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007705/0.5148, allocations: 123 kB / 0.508 GB, free: 95.77 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 () * Number of clocked states: 1 (PI.x) * 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.004128/0.519, allocations: 5.8 MB / 0.5136 GB, free: 90.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002417/0.5214, allocations: 1.195 MB / 0.5148 GB, free: 90.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/0.5214, allocations: 7.375 kB / 0.5148 GB, free: 90.35 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008749/0.5223, allocations: 384.3 kB / 0.5152 GB, free: 90.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000595/0.5229, allocations: 135.5 kB / 0.5153 GB, free: 90.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007747/0.5307, allocations: 7.862 MB / 0.523 GB, free: 84.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.531, allocations: 0.818 MB / 0.5238 GB, free: 83.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005869/0.5316, allocations: 87.52 kB / 0.5239 GB, free: 83.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003355/0.5319, allocations: 115.1 kB / 0.524 GB, free: 83.31 MB / 378.7 MB Notification: Performance of SimCode: time 9.32e-07/0.5319, allocations: 3.969 kB / 0.524 GB, free: 83.31 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02116/0.5531, allocations: 10.32 MB / 0.5341 GB, free: 74.65 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000165/0.5533, allocations: 191.5 kB / 0.5343 GB, free: 74.41 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/2.577, allocations: 0 / 0.5343 GB, free: 74.41 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat