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.0008863/0.0008864, allocations: 100.8 kB / 17.01 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 194.9 kB / 17.91 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.3 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003095/0.0003095, allocations: 4 kB / 306.8 MB, free: 1.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1351, allocations: 51.48 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003895/0.139, allocations: 1.969 MB / 360.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.1413, allocations: 0.8111 MB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002057/0.1415, allocations: 7.938 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.1418, allocations: 43.7 kB / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002072/0.142, allocations: 39.69 kB / 361.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006751/0.1427, allocations: 147.8 kB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005053/0.1432, allocations: 343.3 kB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002187/0.1434, allocations: 82.22 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003031/0.1437, allocations: 135.5 kB / 361.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002705/0.144, allocations: 147.4 kB / 362 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.043e-05/0.1441, allocations: 16 kB / 362 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.718e-05/0.1441, allocations: 16 kB / 362 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.1443, allocations: 79.7 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.1444, allocations: 69.58 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.1448, allocations: 231.7 kB / 362.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1448, allocations: 0 / 362.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1448, allocations: 0 / 362.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1448, allocations: 0 / 362.4 MB, free: 9.867 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.001403/0.1462, allocations: 0.5887 MB / 363 MB, free: 9.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.1463, allocations: 12.03 kB / 363 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.1464, allocations: 66.53 kB / 363.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.914e-05/0.1465, allocations: 39.62 kB / 363.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004336/0.1469, allocations: 276.1 kB / 363.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002865/0.1472, allocations: 145.7 kB / 363.5 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.079e-05/0.1473, allocations: 35.98 kB / 363.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.1491, allocations: 0.5588 MB / 364.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.1492, allocations: 7.938 kB / 364.1 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.684e-05/0.1492, allocations: 8 kB / 364.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1492, allocations: 8 kB / 364.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002163/0.1514, allocations: 0.5386 MB / 364.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002236/0.1537, allocations: 1.018 MB / 365.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002392/0.1561, allocations: 0.5147 MB / 366.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009931/0.1571, allocations: 283.2 kB / 366.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.104e-05/0.1572, allocations: 8.141 kB / 366.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.613e-05/0.1573, allocations: 46.62 kB / 366.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.005e-06/0.1573, allocations: 4 kB / 366.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2978/0.4551, allocations: 6.745 MB / 373.3 MB, free: 20.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.4552, allocations: 157.5 kB / 373.4 MB, free: 20.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.4555, allocations: 194.2 kB / 373.6 MB, free: 20.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.526e-05/0.4556, allocations: 38.33 kB / 373.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.572e-05/0.4557, allocations: 142.2 kB / 373.8 MB, free: 19.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.4559, allocations: 195.1 kB / 374 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.223e-05/0.456, allocations: 13.38 kB / 374 MB, free: 19.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.4561, allocations: 343.6 kB / 374.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/0.4578, allocations: 0.6519 MB / 375 MB, free: 19.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/0.4596, allocations: 0.8329 MB / 375.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.461, allocations: 0.6095 MB / 376.4 MB, free: 18.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.461, allocations: 1.375 kB / 376.4 MB, free: 18.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003555/0.4646, allocations: 1.464 MB / 377.9 MB, free: 18.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.4646, allocations: 6.344 kB / 377.9 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.4647, allocations: 6.812 kB / 377.9 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.4647, allocations: 9.438 kB / 377.9 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.466, allocations: 232.1 kB / 378.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.256e-05/0.466, allocations: 15.25 kB / 378.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008962/0.4669, allocations: 123.2 kB / 378.3 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-05/0.467, allocations: 27.41 kB / 378.3 MB, free: 18.3 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.0003467/0.4674, allocations: 187.2 kB / 378.5 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003491/0.4677, allocations: 149.9 kB / 378.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00018/0.4679, allocations: 59.89 kB / 378.7 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.4679, allocations: 8.828 kB / 378.7 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.031e-05/0.468, allocations: 4.703 kB / 378.7 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.468, allocations: 4.094 kB / 378.7 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004802/0.4728, allocations: 2.291 MB / 381 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/0.4728, allocations: 13.89 kB / 381 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007675/0.4736, allocations: 207.6 kB / 381.2 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.349e-05/0.4736, allocations: 16.25 kB / 381.2 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.404e-05/0.4737, allocations: 24.48 kB / 381.3 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.896e-05/0.4737, allocations: 22.53 kB / 381.3 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.438e-05/0.4737, allocations: 16.78 kB / 381.3 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.4769, allocations: 1.658 MB / 383 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001959/0.4771, allocations: 161.2 kB / 383.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.423e-05/0.4771, allocations: 27.02 kB / 383.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006073/0.4778, allocations: 99.25 kB / 383.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/0.478, allocations: 103.2 kB / 383.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-05/0.4781, allocations: 31.44 kB / 383.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001374/0.4782, allocations: 136.4 kB / 383.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4782, allocations: 0 / 383.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007272/0.4789, allocations: 126.5 kB / 383.6 MB, free: 15.53 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.003323/0.4823, allocations: 2.227 MB / 385.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002945/0.4852, allocations: 1.187 MB / 387 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/0.4853, allocations: 2.219 kB / 387 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009974/0.4863, allocations: 379.5 kB / 387.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009051/0.4872, allocations: 138 kB / 387.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007884/0.4951, allocations: 4.247 MB / 391.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.4954, allocations: 0.8083 MB / 392.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000611/0.496, allocations: 94.17 kB / 392.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003536/0.4964, allocations: 121.9 kB / 392.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4964, allocations: 0 / 392.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.5196, allocations: 10.29 MB / 403.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002161/0.5199, allocations: 202.7 kB / 403.3 MB, free: 1.367 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.099/2.619, allocations: 2.812 kB / 403.3 MB, free: 1.367 MB / 302.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