Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001531/0.001535, allocations: 187.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.126/2.126, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001149/0.001149, allocations: 94.81 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005031/0.0005034, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1099, allocations: 47.59 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.02086/0.1308, allocations: 11.84 MB / 386.5 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2726/0.4034, allocations: 5.188 MB / 391.7 MB, free: 9.254 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002871/0.4063, allocations: 59.88 kB / 391.7 MB, free: 9.254 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004193/0.4105, allocations: 0.841 MB / 392.6 MB, free: 9.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004449/0.415, allocations: 0.8915 MB / 393.5 MB, free: 9.242 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002963/0.418, allocations: 0.5744 MB / 394 MB, free: 9.238 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004887/0.4229, allocations: 1.598 MB / 395.6 MB, free: 9.23 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001953/0.4249, allocations: 0.8351 MB / 396.5 MB, free: 9.078 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001564/0.4265, allocations: 0.6234 MB / 397.1 MB, free: 9.078 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00166/0.4282, allocations: 0.7307 MB / 397.8 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004115/0.4287, allocations: 96.12 kB / 397.9 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008292/0.4295, allocations: 139.7 kB / 398.1 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003097/0.4298, allocations: 298.2 kB / 398.3 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006144/0.4304, allocations: 385.2 kB / 398.7 MB, free: 8.871 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004107/0.4346, allocations: 2.348 MB / 401.1 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.4346, allocations: 0 / 401.1 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.4346, allocations: 1 kB / 401.1 MB, free: 8.609 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001007/0.4347, allocations: 0 / 401.1 MB, free: 8.609 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.005862/0.4406, allocations: 1.94 MB / 403 MB, free: 7.359 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.4407, allocations: 9.281 kB / 403 MB, free: 7.359 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006182/0.4413, allocations: 235.1 kB / 403.2 MB, free: 7.273 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001262/0.4426, allocations: 277.5 kB / 403.5 MB, free: 7.141 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00299/0.4456, allocations: 1.098 MB / 404.6 MB, free: 6.57 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.4458, allocations: 128.5 kB / 404.7 MB, free: 6.562 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003883/0.4462, allocations: 167.6 kB / 404.9 MB, free: 6.559 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00462/0.4508, allocations: 1.592 MB / 406.5 MB, free: 6.094 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.499e-05/0.4509, allocations: 9.984 kB / 406.5 MB, free: 6.086 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001955/0.4511, allocations: 67.84 kB / 406.6 MB, free: 6.086 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.957e-05/0.4512, allocations: 40.22 kB / 406.6 MB, free: 6.086 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003859/0.4551, allocations: 1.109 MB / 407.7 MB, free: 5.922 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01375/0.4688, allocations: 6.687 MB / 414.4 MB, free: 0.832 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002884/0.4718, allocations: 0.9983 MB / 415.4 MB, free: 192 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.521e-05/0.4719, allocations: 7.344 kB / 415.4 MB, free: 192 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.4719, allocations: 46.12 kB / 415.5 MB, free: 140 kB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 3.196e-06/0.4719, allocations: 0 / 415.5 MB, free: 140 kB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.007773/0.4797, allocations: 2.131 MB / 417.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/0.4798, allocations: 88.06 kB / 417.7 MB, free: 14.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002715/0.4825, allocations: 1.253 MB / 418.9 MB, free: 14.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.105e-05/0.4827, allocations: 36.27 kB / 419 MB, free: 14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008136/0.4835, allocations: 0.8685 MB / 419.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003002/0.4838, allocations: 239.7 kB / 420.1 MB, free: 13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.83e-05/0.4839, allocations: 19.03 kB / 420.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.4841, allocations: 358.6 kB / 420.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.4852, allocations: 319.9 kB / 420.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001541/0.4867, allocations: 0.7057 MB / 421.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.4881, allocations: 427.1 kB / 421.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.4881, allocations: 4.5 kB / 421.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003258/0.4914, allocations: 1.103 MB / 423 MB, free: 11.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002529/0.494, allocations: 5.308 MB / 428.3 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.84e-05/0.494, allocations: 16 kB / 428.3 MB, free: 5.281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003096/0.4944, allocations: 39.27 kB / 428.3 MB, free: 5.242 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001898/0.4963, allocations: 279.5 kB / 428.6 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.4977, allocations: 1.292 MB / 429.9 MB, free: 3.543 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/0.4994, allocations: 71.94 kB / 430 MB, free: 3.473 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.4995, allocations: 59.95 kB / 430 MB, free: 3.414 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.4995, allocations: 4 kB / 430 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002721/0.5023, allocations: 0.9576 MB / 431 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/0.5023, allocations: 12 kB / 431 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001511/0.5025, allocations: 36.86 kB / 431 MB, free: 2.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.5041, allocations: 255.6 kB / 431.3 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.5054, allocations: 1.292 MB / 432.6 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007771/0.5062, allocations: 52.23 kB / 432.6 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.975e-05/0.5063, allocations: 48 kB / 432.7 MB, free: 0.625 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 138 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00125/0.5075, allocations: 444.7 kB / 433.1 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004361/0.508, allocations: 134.3 kB / 433.2 MB, free: 48 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002533/0.5105, allocations: 0.7335 MB / 434 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.5106, allocations: 4 kB / 434 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.5106, allocations: 0 / 434 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.5106, allocations: 3.984 kB / 434 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006074/0.5167, allocations: 2.179 MB / 436.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.5167, allocations: 7.062 kB / 436.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001261/0.518, allocations: 135.9 kB / 436.3 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001643/0.5182, allocations: 29.03 kB / 436.3 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.829e-05/0.5183, allocations: 16 kB / 436.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001324/0.5196, allocations: 1.28 MB / 437.6 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/0.5197, allocations: 7.969 kB / 437.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00374/0.5234, allocations: 1.259 MB / 438.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008563/0.5243, allocations: 271.3 kB / 439.2 MB, free: 9.801 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002707/0.5246, allocations: 19.97 kB / 439.2 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.5257, allocations: 59.97 kB / 439.2 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.5259, allocations: 48.5 kB / 439.3 MB, free: 9.676 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.806e-05/0.5259, allocations: 16 kB / 439.3 MB, free: 9.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002193/0.5281, allocations: 0.8307 MB / 440.1 MB, free: 8.828 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.5282, allocations: 0 / 440.1 MB, free: 8.828 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00312/0.5313, allocations: 0.5001 MB / 440.6 MB, free: 8.328 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004653/0.536, allocations: 2.307 MB / 442.9 MB, free: 5.938 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004653/0.5407, allocations: 1.486 MB / 444.4 MB, free: 4.438 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/0.5407, allocations: 0 / 444.4 MB, free: 4.438 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001409/0.5422, allocations: 435.4 kB / 444.9 MB, free: 4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/0.5449, allocations: 301.7 kB / 445.1 MB, free: 3.703 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03248/0.5774, allocations: 17.78 MB / 462.9 MB, free: 1.301 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/0.5788, allocations: 1.282 MB / 464.2 MB, free: 15.99 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001549/0.5804, allocations: 0.6477 MB / 464.9 MB, free: 15.34 MB / 346.7 MB Notification: Performance of SimCode: time 2.184e-06/0.5804, allocations: 0 / 464.9 MB, free: 15.34 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.084/3.665, allocations: 32.01 MB / 496.9 MB, free: 15.3 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat