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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.00141, allocations: 89.3 kB / 16.31 MB, free: 5.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 180.5 kB / 17.21 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 223.3 MB / 241.2 MB, free: 14.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002669, allocations: 4.906 kB / 300.9 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1111, allocations: 50.42 MB / 351.3 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002223/0.1134, allocations: 1.777 MB / 353.1 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009869/0.1144, allocations: 0.6084 MB / 353.7 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.818e-05/0.1145, allocations: 4 kB / 353.7 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002256/0.1148, allocations: 43.77 kB / 353.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001137/0.1149, allocations: 35.77 kB / 353.8 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003045/0.1152, allocations: 91.83 kB / 353.9 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003234/0.1155, allocations: 299.2 kB / 354.2 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.1157, allocations: 64.3 kB / 354.2 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.1159, allocations: 127.5 kB / 354.4 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.1161, allocations: 127.5 kB / 354.5 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.865e-05/0.1161, allocations: 16 kB / 354.5 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.688e-05/0.1162, allocations: 16 kB / 354.5 MB, free: 488 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.073e-05/0.1163, allocations: 67.8 kB / 354.6 MB, free: 420 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.937e-05/0.1163, allocations: 61.58 kB / 354.7 MB, free: 352 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001938/0.1165, allocations: 199.8 kB / 354.8 MB, free: 152 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1165, allocations: 0 / 354.8 MB, free: 152 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1166, allocations: 0 / 354.8 MB, free: 152 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1166, allocations: 0 / 354.8 MB, free: 152 kB / 286.1 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.000975/0.1175, allocations: 0.5542 MB / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.1176, allocations: 8.031 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.76e-05/0.1177, allocations: 58.55 kB / 355.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.399e-05/0.1177, allocations: 31.72 kB / 355.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.118, allocations: 255.1 kB / 355.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.1182, allocations: 137.6 kB / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.273e-05/0.1183, allocations: 24 kB / 355.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007646/0.1191, allocations: 375.6 kB / 356.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.1191, allocations: 7.859 kB / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.1191, allocations: 15.94 kB / 356.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.1191, allocations: 8 kB / 356.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.1203, allocations: 0.5096 MB / 356.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.122, allocations: 1.027 MB / 357.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.1231, allocations: 356 kB / 358.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004419/0.1235, allocations: 193.2 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-05/0.1236, allocations: 4.234 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.1236, allocations: 30.8 kB / 358.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.643e-06/0.1236, allocations: 0 / 358.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02391/0.1475, allocations: 6.673 MB / 365.1 MB, free: 5.609 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.1476, allocations: 59.78 kB / 365.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002573/0.1479, allocations: 198.9 kB / 365.3 MB, free: 5.336 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.1479, allocations: 33.7 kB / 365.4 MB, free: 5.297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.356e-05/0.148, allocations: 148.6 kB / 365.5 MB, free: 5.148 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.1482, allocations: 177.4 kB / 365.7 MB, free: 4.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.467e-05/0.1482, allocations: 8 kB / 365.7 MB, free: 4.965 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1484, allocations: 342.8 kB / 366 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.1495, allocations: 0.493 MB / 366.5 MB, free: 4.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/0.1507, allocations: 0.549 MB / 367.1 MB, free: 3.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.1518, allocations: 438 kB / 367.5 MB, free: 3.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1518, allocations: 7.938 kB / 367.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002461/0.1543, allocations: 1.057 MB / 368.6 MB, free: 2.066 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.1544, allocations: 7.953 kB / 368.6 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1544, allocations: 4 kB / 368.6 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.1544, allocations: 4 kB / 368.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009141/0.1553, allocations: 187.8 kB / 368.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.1553, allocations: 8 kB / 368.8 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000599/0.1559, allocations: 111.9 kB / 368.9 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.165e-05/0.156, allocations: 16 kB / 368.9 MB, free: 1.734 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002113/0.1562, allocations: 161.7 kB / 369.1 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.636e-05/0.1563, allocations: 27.62 kB / 369.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.1564, allocations: 51.27 kB / 369.1 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.1565, allocations: 4 kB / 369.1 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1565, allocations: 4 kB / 369.1 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1565, allocations: 3.984 kB / 369.1 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2138/0.3703, allocations: 1.981 MB / 371.1 MB, free: 25.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.564e-05/0.3703, allocations: 7.719 kB / 371.1 MB, free: 25.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000683/0.371, allocations: 165.9 kB / 371.3 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.223e-05/0.371, allocations: 12.77 kB / 371.3 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.787e-05/0.3711, allocations: 18.88 kB / 371.3 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.201e-05/0.3711, allocations: 17.19 kB / 371.3 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.196e-05/0.3711, allocations: 16.03 kB / 371.4 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002759/0.3739, allocations: 1.335 MB / 372.7 MB, free: 24.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/0.3741, allocations: 146 kB / 372.8 MB, free: 24.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.624e-05/0.3742, allocations: 20.11 kB / 372.9 MB, free: 24.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005233/0.3747, allocations: 92.27 kB / 372.9 MB, free: 24.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.3749, allocations: 93.41 kB / 373 MB, free: 24.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.398e-05/0.375, allocations: 26.52 kB / 373.1 MB, free: 24.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001967/0.3752, allocations: 140.7 kB / 373.2 MB, free: 24.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3752, allocations: 0 / 373.2 MB, free: 24.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000561/0.3758, allocations: 94.53 kB / 373.3 MB, free: 24.59 MB / 302.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.003136/0.3789, allocations: 1.896 MB / 375.2 MB, free: 23.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002183/0.3811, allocations: 0.9256 MB / 376.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.3811, allocations: 1.375 kB / 376.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009081/0.382, allocations: 362.8 kB / 376.5 MB, free: 23.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006561/0.3827, allocations: 58.64 kB / 376.5 MB, free: 23.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006683/0.3894, allocations: 3.301 MB / 379.8 MB, free: 21.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.3897, allocations: 0.7855 MB / 380.6 MB, free: 20.97 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004999/0.3902, allocations: 74.73 kB / 380.7 MB, free: 20.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002606/0.3905, allocations: 93.64 kB / 380.8 MB, free: 20.88 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3905, allocations: 0 / 380.8 MB, free: 20.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.4115, allocations: 7.577 MB / 388.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001682/0.4117, allocations: 194 kB / 388.5 MB, free: 18.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/2.311, allocations: 0 / 388.5 MB, free: 18.29 MB / 302.1 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