Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",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.001576/0.001576, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.176/2.176, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001116/0.001116, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.227e-05/4.262e-05, allocations: 7.984 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 47.58 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4941/0.6064, allocations: 115.3 MB / 484.5 MB, free: 9.887 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003397/0.6068, allocations: 82.33 kB / 484.6 MB, free: 9.844 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1659/0.7727, allocations: 39.49 MB / 0.5118 GB, free: 3.875 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.7728, allocations: 4 kB / 0.5118 GB, free: 3.871 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001593/0.773, allocations: 36 kB / 0.5118 GB, free: 3.836 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004992/0.778, allocations: 1.53 MB / 0.5133 GB, free: 2.254 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.7781, allocations: 8.031 kB / 0.5133 GB, free: 2.246 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006339/0.7787, allocations: 215.5 kB / 0.5135 GB, free: 2.023 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001276/0.78, allocations: 245.6 kB / 0.5138 GB, free: 1.781 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003718/0.7837, allocations: 1.067 MB / 0.5148 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.7839, allocations: 111 kB / 0.5149 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004169/0.7843, allocations: 152 kB / 0.5151 GB, free: 424 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004049/0.7884, allocations: 1.369 MB / 0.5164 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.261e-05/0.7885, allocations: 7.844 kB / 0.5164 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002044/0.7888, allocations: 64 kB / 0.5165 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.771e-05/0.7888, allocations: 36 kB / 0.5165 GB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003184/0.792, allocations: 0.8818 MB / 0.5174 GB, free: 13.99 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0148/0.8069, allocations: 6.217 MB / 0.5234 GB, free: 7.469 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.8087, allocations: 0.6254 MB / 0.524 GB, free: 6.793 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005353/0.8093, allocations: 207.5 kB / 0.5242 GB, free: 6.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.312e-05/0.8094, allocations: 4.438 kB / 0.5242 GB, free: 6.586 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/0.8094, allocations: 42.98 kB / 0.5243 GB, free: 6.535 MB / 410.7 MB Notification: Performance of pre-optimization done (n=51): time 2.765e-06/0.8095, allocations: 0 / 0.5243 GB, free: 6.535 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.003876/0.8133, allocations: 1.367 MB / 0.5256 GB, free: 5.109 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.698e-05/0.8135, allocations: 85.48 kB / 0.5257 GB, free: 5.008 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002326/0.8158, allocations: 0.9433 MB / 0.5266 GB, free: 4.051 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001378/0.816, allocations: 33.7 kB / 0.5267 GB, free: 4.012 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008241/0.8168, allocations: 0.8115 MB / 0.5275 GB, free: 3.191 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003024/0.8171, allocations: 197.2 kB / 0.5276 GB, free: 2.996 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.528e-05/0.8172, allocations: 20 kB / 0.5277 GB, free: 2.977 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.8174, allocations: 350.8 kB / 0.528 GB, free: 2.625 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006408/0.8181, allocations: 206 kB / 0.5282 GB, free: 2.422 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00097/0.8191, allocations: 0.5862 MB / 0.5288 GB, free: 1.648 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008369/0.8199, allocations: 311.1 kB / 0.5291 GB, free: 1.344 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.8199, allocations: 4 kB / 0.5291 GB, free: 1.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002259/0.8222, allocations: 0.8585 MB / 0.5299 GB, free: 480 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2829/1.105, allocations: 5.135 MB / 0.5349 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-05/1.105, allocations: 17.61 kB / 0.5349 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004043/1.106, allocations: 39.52 kB / 0.535 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/1.108, allocations: 230.9 kB / 0.5352 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/1.109, allocations: 1.289 MB / 0.5364 GB, free: 99.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/1.11, allocations: 56.34 kB / 0.5365 GB, free: 99.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002054/1.111, allocations: 46.11 kB / 0.5365 GB, free: 99.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/1.111, allocations: 7.875 kB / 0.5366 GB, free: 99.27 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002288/1.113, allocations: 0.793 MB / 0.5373 GB, free: 99.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.414e-05/1.113, allocations: 12.25 kB / 0.5373 GB, free: 99.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/1.113, allocations: 39.95 kB / 0.5374 GB, free: 99.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/1.115, allocations: 222 kB / 0.5376 GB, free: 99.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/1.116, allocations: 1.293 MB / 0.5389 GB, free: 98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007736/1.117, allocations: 36.52 kB / 0.5389 GB, free: 98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.444e-05/1.117, allocations: 47.42 kB / 0.5389 GB, free: 98 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0003287/1.117, allocations: 173.5 kB / 0.5391 GB, free: 97.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003803/1.118, allocations: 119.6 kB / 0.5392 GB, free: 97.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/1.12, allocations: 0.5109 MB / 0.5397 GB, free: 97.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/1.12, allocations: 5.344 kB / 0.5397 GB, free: 97.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/1.12, allocations: 0 / 0.5397 GB, free: 97.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/1.12, allocations: 4.438 kB / 0.5397 GB, free: 97.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004963/1.125, allocations: 1.774 MB / 0.5415 GB, free: 97.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/1.125, allocations: 4.781 kB / 0.5415 GB, free: 97.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/1.126, allocations: 114.3 kB / 0.5416 GB, free: 97.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001557/1.126, allocations: 29.25 kB / 0.5416 GB, free: 97.44 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.708e-05/1.126, allocations: 11.73 kB / 0.5416 GB, free: 97.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009515/1.127, allocations: 1.281 MB / 0.5429 GB, free: 96.19 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/1.127, allocations: 3.312 kB / 0.5429 GB, free: 96.19 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002061/1.129, allocations: 0.9242 MB / 0.5438 GB, free: 95.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007026/1.13, allocations: 241.7 kB / 0.544 GB, free: 95.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002086/1.13, allocations: 13.3 kB / 0.544 GB, free: 95.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009267/1.131, allocations: 43.98 kB / 0.544 GB, free: 95.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/1.131, allocations: 41.98 kB / 0.5441 GB, free: 95.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.052e-05/1.131, allocations: 15.86 kB / 0.5441 GB, free: 95.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001735/1.133, allocations: 0.716 MB / 0.5448 GB, free: 95.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.133, allocations: 1.641 kB / 0.5448 GB, free: 95.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002865/1.136, allocations: 0.5019 MB / 0.5453 GB, free: 95.64 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * 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: 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.002939/1.139, allocations: 2.216 MB / 0.5475 GB, free: 94.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003045/1.142, allocations: 1.181 MB / 0.5486 GB, free: 94.05 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/1.142, allocations: 1.375 kB / 0.5486 GB, free: 94.05 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000743/1.143, allocations: 318.2 kB / 0.5489 GB, free: 93.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002327/1.145, allocations: 262.3 kB / 0.5492 GB, free: 93.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007404/1.153, allocations: 2.132 MB / 0.5512 GB, free: 93.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/1.154, allocations: 1.202 MB / 0.5524 GB, free: 92.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/1.155, allocations: 0.5624 MB / 0.553 GB, free: 92.41 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/1.155, allocations: 1.25 kB / 0.553 GB, free: 92.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.094/4.25, allocations: 29.72 MB / 0.582 GB, free: 90.45 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat