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.001056/0.001056, allocations: 180.6 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008154/0.0008153, allocations: 92.84 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002588, allocations: 4 kB / 328.4 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2503, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1346/0.385, allocations: 116.2 MB / 492.1 MB, free: 12.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.3853, allocations: 95.88 kB / 492.2 MB, free: 12.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2999/0.6853, allocations: 42.71 MB / 0.5224 GB, free: 95.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.6853, allocations: 3.938 kB / 0.5224 GB, free: 95.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001719/0.6855, allocations: 47.94 kB / 0.5224 GB, free: 95.67 MB / 378.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.004099/0.6896, allocations: 1.941 MB / 0.5243 GB, free: 93.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.6897, allocations: 8.031 kB / 0.5243 GB, free: 93.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000504/0.6902, allocations: 232.5 kB / 0.5245 GB, free: 93.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008704/0.691, allocations: 269.3 kB / 0.5248 GB, free: 93.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002245/0.6933, allocations: 1.18 MB / 0.5259 GB, free: 91.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-05/0.6934, allocations: 123.3 kB / 0.5261 GB, free: 91.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002427/0.6937, allocations: 171.9 kB / 0.5262 GB, free: 91.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0025/0.6962, allocations: 1.59 MB / 0.5278 GB, free: 90.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.359e-05/0.6962, allocations: 4 kB / 0.5278 GB, free: 90.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.6963, allocations: 72 kB / 0.5278 GB, free: 89.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.263e-05/0.6964, allocations: 43.94 kB / 0.5279 GB, free: 89.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001883/0.6983, allocations: 1.117 MB / 0.529 GB, free: 88.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00788/0.7061, allocations: 6.754 MB / 0.5356 GB, free: 81.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.7077, allocations: 1.006 MB / 0.5366 GB, free: 80.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.085e-05/0.7078, allocations: 4.562 kB / 0.5366 GB, free: 80.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.7078, allocations: 47.08 kB / 0.5366 GB, free: 80.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 3.145e-06/0.7078, allocations: 0 / 0.5366 GB, free: 80.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.003527/0.7114, allocations: 2.121 MB / 0.5387 GB, free: 78.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.7114, allocations: 85.67 kB / 0.5388 GB, free: 78.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/0.7128, allocations: 1.083 MB / 0.5398 GB, free: 77.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/0.7129, allocations: 37.7 kB / 0.5399 GB, free: 77.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000419/0.7133, allocations: 0.9 MB / 0.5407 GB, free: 76.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.7135, allocations: 241.9 kB / 0.541 GB, free: 76.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.774e-05/0.7135, allocations: 24 kB / 0.541 GB, free: 76.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.271e-05/0.7136, allocations: 341.9 kB / 0.5413 GB, free: 75.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005631/0.7141, allocations: 318.5 kB / 0.5416 GB, free: 75.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006414/0.7148, allocations: 0.7165 MB / 0.5423 GB, free: 74.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00065/0.7155, allocations: 426.9 kB / 0.5427 GB, free: 74.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.7155, allocations: 8 kB / 0.5427 GB, free: 74.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001754/0.7172, allocations: 1.192 MB / 0.5439 GB, free: 72.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009439/0.7182, allocations: 5.369 MB / 0.5491 GB, free: 67.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/0.7182, allocations: 19.98 kB / 0.5492 GB, free: 67.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001725/0.7184, allocations: 40.86 kB / 0.5492 GB, free: 67.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000815/0.7192, allocations: 275.5 kB / 0.5495 GB, free: 66.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007833/0.72, allocations: 1.299 MB / 0.5507 GB, free: 65.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009313/0.721, allocations: 76.12 kB / 0.5508 GB, free: 65.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.765e-05/0.7211, allocations: 51.94 kB / 0.5508 GB, free: 65.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.544e-06/0.7211, allocations: 4 kB / 0.5509 GB, free: 65.24 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001303/0.7224, allocations: 0.9533 MB / 0.5518 GB, free: 64.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.7224, allocations: 12.56 kB / 0.5518 GB, free: 64.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.813e-05/0.7225, allocations: 44.86 kB / 0.5518 GB, free: 64.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007191/0.7232, allocations: 259.6 kB / 0.5521 GB, free: 63.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005752/0.7238, allocations: 1.305 MB / 0.5534 GB, free: 62.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007602/0.7246, allocations: 51.89 kB / 0.5534 GB, free: 62.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.959e-05/0.7247, allocations: 48 kB / 0.5535 GB, free: 62.44 MB / 378.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 (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.0006732/0.7253, allocations: 436.9 kB / 0.5539 GB, free: 62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.7255, allocations: 134.3 kB / 0.554 GB, free: 61.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/0.7268, allocations: 0.7322 MB / 0.5547 GB, free: 61.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.7268, allocations: 7.984 kB / 0.5547 GB, free: 61.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.7268, allocations: 0 / 0.5547 GB, free: 61.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.7268, allocations: 4 kB / 0.5547 GB, free: 61.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003347/0.7302, allocations: 2.134 MB / 0.5568 GB, free: 58.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.7302, allocations: 4.203 kB / 0.5568 GB, free: 58.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005719/0.7308, allocations: 151.8 kB / 0.557 GB, free: 58.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.821e-05/0.7309, allocations: 20.86 kB / 0.557 GB, free: 58.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.498e-05/0.7309, allocations: 15.98 kB / 0.557 GB, free: 58.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006256/0.7316, allocations: 1.284 MB / 0.5582 GB, free: 57.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.7316, allocations: 0 / 0.5582 GB, free: 57.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/0.7332, allocations: 1.265 MB / 0.5595 GB, free: 55.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004523/0.7337, allocations: 275.3 kB / 0.5597 GB, free: 55.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002535/0.7339, allocations: 12 kB / 0.5598 GB, free: 55.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006541/0.7346, allocations: 63.89 kB / 0.5598 GB, free: 55.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.175e-05/0.7347, allocations: 48.41 kB / 0.5599 GB, free: 55.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.7347, allocations: 23.98 kB / 0.5599 GB, free: 55.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00105/0.7358, allocations: 0.8112 MB / 0.5607 GB, free: 54.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7358, allocations: 0 / 0.5607 GB, free: 54.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001861/0.7377, allocations: 0.5547 MB / 0.5612 GB, free: 54.12 MB / 378.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 () * 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.002279/0.74, allocations: 2.582 MB / 0.5637 GB, free: 51.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002251/0.7422, allocations: 1.487 MB / 0.5652 GB, free: 50 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.7422, allocations: 320 / 0.5652 GB, free: 50 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005489/0.7428, allocations: 434.1 kB / 0.5656 GB, free: 49.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.7441, allocations: 298.7 kB / 0.5659 GB, free: 49.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01367/0.7578, allocations: 17.7 MB / 0.5832 GB, free: 30.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000786/0.7586, allocations: 1.268 MB / 0.5844 GB, free: 29.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008627/0.7595, allocations: 186.5 kB / 0.5846 GB, free: 29.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006672/0.7602, allocations: 0.6477 MB / 0.5852 GB, free: 28.82 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.7602, allocations: 3.938 kB / 0.5852 GB, free: 28.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04757/0.8078, allocations: 30.07 MB / 0.6146 GB, free: 14.71 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002085/0.8081, allocations: 226.8 kB / 0.6148 GB, free: 14.47 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.781/3.589, allocations: 4 kB / 0.6148 GB, free: 14.47 MB / 394.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