Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001155/0.001155, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007661/0.0007657, allocations: 82.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.336e-05/1.34e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08169/0.08172, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3627/0.4444, allocations: 115.7 MB / 478.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/0.4448, allocations: 83.52 kB / 478.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1084/0.5533, allocations: 41.9 MB / 0.5086 GB, free: 7.707 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.5533, allocations: 0 / 0.5086 GB, free: 7.707 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000117/0.5534, allocations: 40 kB / 0.5086 GB, free: 7.668 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.003018/0.5565, allocations: 1.698 MB / 0.5103 GB, free: 5.918 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.5565, allocations: 8.031 kB / 0.5103 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007464/0.5573, allocations: 273.8 kB / 0.5106 GB, free: 5.641 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.5593, allocations: 1.169 MB / 0.5117 GB, free: 4.414 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.668e-05/0.5594, allocations: 52 kB / 0.5118 GB, free: 4.363 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001913/0.5596, allocations: 103.9 kB / 0.5119 GB, free: 4.262 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001737/0.5613, allocations: 0.8736 MB / 0.5127 GB, free: 3.387 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002384/0.5637, allocations: 1.275 MB / 0.514 GB, free: 2.051 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.341e-05/0.5638, allocations: 8 kB / 0.514 GB, free: 2.043 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.276e-05/0.5639, allocations: 0 / 0.514 GB, free: 2.043 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-05/0.5639, allocations: 40 kB / 0.514 GB, free: 2.004 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009009/0.573, allocations: 6.463 MB / 0.5203 GB, free: 11.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.5746, allocations: 0.8579 MB / 0.5212 GB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00036/0.5749, allocations: 234.5 kB / 0.5214 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.283e-05/0.575, allocations: 4.562 kB / 0.5214 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.5751, allocations: 43.12 kB / 0.5214 GB, free: 10.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=61): time 3.346e-06/0.5751, allocations: 0 / 0.5214 GB, free: 10.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=64): time 0.002671/0.5777, allocations: 1.444 MB / 0.5228 GB, free: 8.527 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.5778, allocations: 85.67 kB / 0.5229 GB, free: 8.426 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001351/0.5792, allocations: 0.9021 MB / 0.5238 GB, free: 7.516 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.265e-05/0.5792, allocations: 25.7 kB / 0.5238 GB, free: 7.484 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006861/0.5799, allocations: 0.9184 MB / 0.5247 GB, free: 6.555 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/0.5801, allocations: 232.6 kB / 0.5249 GB, free: 6.324 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-05/0.5802, allocations: 3.938 kB / 0.5249 GB, free: 6.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.5803, allocations: 345.9 kB / 0.5253 GB, free: 5.977 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003921/0.5807, allocations: 222.6 kB / 0.5255 GB, free: 5.762 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000698/0.5814, allocations: 0.612 MB / 0.5261 GB, free: 4.961 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005749/0.582, allocations: 332.3 kB / 0.5264 GB, free: 4.637 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.884e-06/0.582, allocations: 4 kB / 0.5264 GB, free: 4.633 MB / 410.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001674/0.5837, allocations: 0.9294 MB / 0.5273 GB, free: 3.695 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2569/0.8407, allocations: 5.329 MB / 0.5325 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6e-05/0.8408, allocations: 13.97 kB / 0.5325 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000326/0.8411, allocations: 39.47 kB / 0.5326 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/0.8424, allocations: 276.4 kB / 0.5328 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009162/0.8434, allocations: 1.244 MB / 0.534 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.8444, allocations: 49.5 kB / 0.5341 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.419e-05/0.8445, allocations: 51.17 kB / 0.5341 GB, free: 102.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.8445, allocations: 7.703 kB / 0.5342 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001385/0.8459, allocations: 0.7448 MB / 0.5349 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/0.846, allocations: 14.97 kB / 0.5349 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001051/0.8461, allocations: 43.45 kB / 0.5349 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008505/0.8469, allocations: 252.5 kB / 0.5352 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006816/0.8476, allocations: 1.25 MB / 0.5364 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008807/0.8485, allocations: 27.08 kB / 0.5364 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-05/0.8486, allocations: 54.31 kB / 0.5365 GB, free: 101.5 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 139 * 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.000231/0.8489, allocations: 149.2 kB / 0.5366 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009736/0.8498, allocations: 0.5266 MB / 0.5371 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.85, allocations: 121.3 kB / 0.5372 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.8512, allocations: 0.5433 MB / 0.5378 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.8513, allocations: 5.344 kB / 0.5378 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.8513, allocations: 2.656 kB / 0.5378 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.8513, allocations: 3.328 kB / 0.5378 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003436/0.8548, allocations: 1.761 MB / 0.5395 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.8548, allocations: 5.594 kB / 0.5395 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006849/0.8555, allocations: 140 kB / 0.5396 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001076/0.8556, allocations: 23.34 kB / 0.5397 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.8556, allocations: 12.25 kB / 0.5397 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007165/0.8564, allocations: 1.23 MB / 0.5409 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.8564, allocations: 6.422 kB / 0.5409 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.8578, allocations: 1.003 MB / 0.5419 GB, free: 99.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004038/0.8582, allocations: 252.3 kB / 0.5421 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.8583, allocations: 7.797 kB / 0.5421 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005868/0.8589, allocations: 49.64 kB / 0.5422 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.859, allocations: 44.56 kB / 0.5422 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.8591, allocations: 19.06 kB / 0.5422 GB, free: 99.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001094/0.8602, allocations: 0.6651 MB / 0.5429 GB, free: 99.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8602, allocations: 1.5 kB / 0.5429 GB, free: 99.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001909/0.8621, allocations: 469.8 kB / 0.5433 GB, free: 99.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.phi,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,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete 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.002262/0.8644, allocations: 2.268 MB / 0.5455 GB, free: 97.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002291/0.8667, allocations: 1.255 MB / 0.5468 GB, free: 97.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.8667, allocations: 0.5625 kB / 0.5468 GB, free: 97.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005012/0.8672, allocations: 345.1 kB / 0.5471 GB, free: 97.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.8685, allocations: 277.2 kB / 0.5474 GB, free: 97.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005071/0.8736, allocations: 2.292 MB / 0.5496 GB, free: 96.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.8747, allocations: 1.274 MB / 0.5508 GB, free: 95.93 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001265/0.876, allocations: 217.2 kB / 0.551 GB, free: 95.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007245/0.8767, allocations: 0.6358 MB / 0.5517 GB, free: 95.88 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/0.8767, allocations: 1.375 kB / 0.5517 GB, free: 95.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05924/0.936, allocations: 26.34 MB / 0.5774 GB, free: 94.04 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/0.9362, allocations: 169.5 kB / 0.5776 GB, free: 93.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.843/3.779, allocations: 0 / 0.5776 GB, free: 93.84 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat