Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009197/0.0009197, allocations: 99.36 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009538/0.0009539, allocations: 208.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002575/0.0002576, allocations: 8 kB / 306.7 MB, free: 1.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1114, allocations: 51.49 MB / 358.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002389/0.1139, allocations: 1.767 MB / 360 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.115, allocations: 0.6553 MB / 360.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.1151, allocations: 4 kB / 360.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.1154, allocations: 31.83 kB / 360.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.1155, allocations: 47.84 kB / 360.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.1158, allocations: 95.83 kB / 360.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002672/0.1161, allocations: 203.4 kB / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1162, allocations: 60.28 kB / 361 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002233/0.1165, allocations: 123.6 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.1167, allocations: 131.5 kB / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.437e-05/0.1167, allocations: 16 kB / 361.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.554e-05/0.1167, allocations: 12 kB / 361.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.877e-05/0.1168, allocations: 71.77 kB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.654e-05/0.1169, allocations: 69.58 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.1171, allocations: 187.8 kB / 361.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1171, allocations: 0 / 361.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1171, allocations: 0 / 361.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.1171, allocations: 0 / 361.6 MB, free: 10.53 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0009933/0.1181, allocations: 0.5571 MB / 362.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1182, allocations: 8.031 kB / 362.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.999e-05/0.1182, allocations: 66.53 kB / 362.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.042e-05/0.1183, allocations: 27.72 kB / 362.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003439/0.1187, allocations: 244.3 kB / 362.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001982/0.1189, allocations: 137.6 kB / 362.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.205e-05/0.1189, allocations: 24 kB / 362.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007981/0.1197, allocations: 379.5 kB / 363.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.1198, allocations: 7.891 kB / 363.1 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.1198, allocations: 16 kB / 363.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.1198, allocations: 4 kB / 363.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.1211, allocations: 0.5135 MB / 363.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.1229, allocations: 1.019 MB / 364.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.1241, allocations: 359 kB / 365 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.884e-05/0.1242, allocations: 4.234 kB / 365 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.1242, allocations: 34.8 kB / 365 MB, free: 6.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.925e-06/0.1242, allocations: 0 / 365 MB, free: 6.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02698/0.1512, allocations: 6.664 MB / 371.7 MB, free: 184 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.1513, allocations: 55.84 kB / 371.7 MB, free: 116 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2358/0.3871, allocations: 195.7 kB / 371.9 MB, free: 20.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001219/0.3873, allocations: 34.91 kB / 372 MB, free: 20.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.3874, allocations: 149.1 kB / 372.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.3876, allocations: 179.6 kB / 372.3 MB, free: 20.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.874e-05/0.3876, allocations: 10.38 kB / 372.3 MB, free: 20.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.532e-05/0.3877, allocations: 337.6 kB / 372.6 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001458/0.3892, allocations: 0.4971 MB / 373.1 MB, free: 19.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.3908, allocations: 0.5466 MB / 373.7 MB, free: 19.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.3921, allocations: 448.1 kB / 374.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3921, allocations: 0.625 kB / 374.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003131/0.3953, allocations: 1.06 MB / 375.2 MB, free: 19.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.3953, allocations: 4.5 kB / 375.2 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.3953, allocations: 1.906 kB / 375.2 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.693e-05/0.3953, allocations: 3.219 kB / 375.2 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.3964, allocations: 190.7 kB / 375.4 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.3964, allocations: 5.641 kB / 375.4 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007418/0.3972, allocations: 107.5 kB / 375.5 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.425e-05/0.3973, allocations: 15.77 kB / 375.5 MB, free: 19.82 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.0002536/0.3975, allocations: 159.8 kB / 375.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.986e-05/0.3976, allocations: 28.05 kB / 375.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.3977, allocations: 50 kB / 375.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.3977, allocations: 9.5 kB / 375.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.3978, allocations: 1.484 kB / 375.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.3978, allocations: 4.047 kB / 375.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004354/0.4021, allocations: 1.987 MB / 377.7 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-05/0.4022, allocations: 8.406 kB / 377.7 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006982/0.4029, allocations: 166.9 kB / 377.9 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.901e-05/0.4029, allocations: 11.88 kB / 377.9 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.802e-05/0.403, allocations: 22.17 kB / 377.9 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.968e-05/0.403, allocations: 15.91 kB / 377.9 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.211e-05/0.403, allocations: 18.14 kB / 378 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/0.4061, allocations: 1.743 MB / 379.7 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/0.4063, allocations: 148.4 kB / 379.8 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.829e-05/0.4064, allocations: 23.3 kB / 379.9 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005442/0.4069, allocations: 93.81 kB / 380 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.4071, allocations: 93.41 kB / 380 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.778e-05/0.4072, allocations: 25.91 kB / 380.1 MB, free: 17.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001617/0.4074, allocations: 140.5 kB / 380.2 MB, free: 17.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4074, allocations: 0 / 380.2 MB, free: 17.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000522/0.4079, allocations: 97.62 kB / 380.3 MB, free: 17.11 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.003899/0.4118, allocations: 4.709 MB / 385 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002882/0.4147, allocations: 0.9217 MB / 385.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/0.4147, allocations: 1.062 kB / 385.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.4159, allocations: 360.2 kB / 386.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.4164, allocations: 49.31 kB / 386.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008112/0.4245, allocations: 3.922 MB / 390.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.4251, allocations: 0.7875 MB / 391 MB, free: 9.387 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005652/0.4256, allocations: 83.23 kB / 391.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002793/0.4259, allocations: 92.47 kB / 391.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of SimCode: time 1.542e-06/0.4259, allocations: 1.094 kB / 391.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.4468, allocations: 7.545 MB / 398.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.447, allocations: 195 kB / 399 MB, free: 5.465 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.895/2.342, allocations: 0 / 399 MB, free: 5.465 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat