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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001294/0.001294, allocations: 98.47 kB / 16.99 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00165/0.00165, allocations: 202.7 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000235/0.000235, allocations: 8 kB / 306.7 MB, free: 1.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1217, allocations: 51.5 MB / 358.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002838/0.1246, allocations: 1.942 MB / 360.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.1261, allocations: 0.8033 MB / 360.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.1263, allocations: 4 kB / 360.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.1265, allocations: 35.77 kB / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001933/0.1267, allocations: 59.75 kB / 361 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004873/0.1272, allocations: 143.6 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002971/0.1275, allocations: 227.8 kB / 361.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.1277, allocations: 86.22 kB / 361.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.128, allocations: 135.5 kB / 361.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002159/0.1282, allocations: 147.4 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.105e-05/0.1283, allocations: 19.98 kB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.27e-05/0.1283, allocations: 19.94 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.371e-05/0.1284, allocations: 67.78 kB / 361.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.492e-05/0.1285, allocations: 73.58 kB / 361.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.1287, allocations: 223.7 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.1287, allocations: 0 / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1287, allocations: 3.938 kB / 362.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1288, allocations: 0 / 362.2 MB, free: 10.01 MB / 302.1 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.00118/0.1299, allocations: 0.5965 MB / 362.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.13, allocations: 12.03 kB / 362.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.044e-05/0.1301, allocations: 70.53 kB / 362.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.972e-05/0.1302, allocations: 35.62 kB / 362.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.1305, allocations: 268.1 kB / 363.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.1307, allocations: 149.7 kB / 363.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.433e-05/0.1308, allocations: 32 kB / 363.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.132, allocations: 0.5588 MB / 363.9 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.132, allocations: 3.938 kB / 363.9 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.811e-05/0.1321, allocations: 12 kB / 363.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1321, allocations: 7.984 kB / 363.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.1335, allocations: 0.5425 MB / 364.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001742/0.1353, allocations: 1.018 MB / 365.5 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.1369, allocations: 0.5108 MB / 366 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/0.137, allocations: 4.188 kB / 366 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.137, allocations: 50.64 kB / 366 MB, free: 5.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.034e-06/0.137, allocations: 0 / 366 MB, free: 5.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2733/0.4103, allocations: 6.744 MB / 372.8 MB, free: 20.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.679e-05/0.4105, allocations: 157.8 kB / 372.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/0.4107, allocations: 199.9 kB / 373.1 MB, free: 20.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.399e-05/0.4108, allocations: 35.95 kB / 373.1 MB, free: 20 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.52e-05/0.4109, allocations: 141.1 kB / 373.3 MB, free: 19.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.4111, allocations: 192.9 kB / 373.5 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-05/0.4111, allocations: 19.03 kB / 373.5 MB, free: 19.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.641e-05/0.4112, allocations: 342.8 kB / 373.8 MB, free: 19.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/0.4131, allocations: 0.6508 MB / 374.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001882/0.4149, allocations: 0.8321 MB / 375.3 MB, free: 19.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001527/0.4165, allocations: 0.603 MB / 375.9 MB, free: 19.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.4165, allocations: 1.312 kB / 375.9 MB, free: 19.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003548/0.4201, allocations: 1.464 MB / 377.4 MB, free: 18.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.4201, allocations: 10.89 kB / 377.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.4201, allocations: 5.5 kB / 377.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.823e-05/0.4202, allocations: 10.42 kB / 377.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/0.4215, allocations: 236.8 kB / 377.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.976e-05/0.4215, allocations: 12.56 kB / 377.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009688/0.4225, allocations: 122.9 kB / 377.8 MB, free: 18.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.228e-05/0.4226, allocations: 25.78 kB / 377.8 MB, free: 18.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0002961/0.4229, allocations: 177.4 kB / 378 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.4232, allocations: 153.5 kB / 378.1 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001407/0.4234, allocations: 60.48 kB / 378.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.4234, allocations: 8.281 kB / 378.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.4234, allocations: 7.578 kB / 378.2 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.4234, allocations: 5.281 kB / 378.2 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004908/0.4283, allocations: 2.291 MB / 380.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.4283, allocations: 13.08 kB / 380.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007876/0.4291, allocations: 209.1 kB / 380.7 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.239e-05/0.4292, allocations: 16.59 kB / 380.7 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.027e-05/0.4292, allocations: 24.58 kB / 380.7 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.701e-05/0.4293, allocations: 18.52 kB / 380.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.318e-05/0.4293, allocations: 14.97 kB / 380.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003516/0.4328, allocations: 2.177 MB / 383 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00022/0.433, allocations: 169.6 kB / 383.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.79e-05/0.4331, allocations: 26.41 kB / 383.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008639/0.434, allocations: 99.77 kB / 383.2 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.4342, allocations: 103.4 kB / 383.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.465e-05/0.4343, allocations: 30.97 kB / 383.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.4344, allocations: 141.4 kB / 383.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4345, allocations: 0 / 383.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000732/0.4352, allocations: 118.1 kB / 383.6 MB, free: 14.86 MB / 302.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.004169/0.4394, allocations: 5.781 MB / 389.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003099/0.4425, allocations: 1.186 MB / 390.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/0.4425, allocations: 2.969 kB / 390.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.4436, allocations: 375.8 kB / 391 MB, free: 9.105 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000754/0.4444, allocations: 126.5 kB / 391.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009514/0.4539, allocations: 7.816 MB / 398.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.4543, allocations: 0.8227 MB / 399.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006207/0.4549, allocations: 93.78 kB / 399.8 MB, free: 2.234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003428/0.4553, allocations: 115.3 kB / 399.9 MB, free: 2.16 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4553, allocations: 0 / 399.9 MB, free: 2.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/0.4781, allocations: 10.26 MB / 410.2 MB, free: 9.945 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/0.4783, allocations: 198 kB / 410.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/2.428, allocations: 2.672 kB / 410.4 MB, free: 9.699 MB / 318.1 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