Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.001565/0.001565, allocations: 176.8 kB / 8.697 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.438/1.438, allocations: 205.3 MB / 214.4 MB, free: 1.734 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.0008551/0.000855, allocations: 78.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.866e-05/1.918e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08005/0.08009, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3176/0.3978, allocations: 94.35 MB / 457.5 MB, free: 1.289 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.398, allocations: 84.27 kB / 457.6 MB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.116/0.514, allocations: 44.1 MB / 0.4899 GB, free: 10.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.514, allocations: 0 / 0.4899 GB, free: 10.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.271e-05/0.5141, allocations: 32 kB / 0.49 GB, free: 10.71 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002803/0.5169, allocations: 1.609 MB / 0.4915 GB, free: 9.055 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.517, allocations: 8.031 kB / 0.4916 GB, free: 9.047 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008892/0.5179, allocations: 285.8 kB / 0.4918 GB, free: 8.766 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002253/0.5202, allocations: 1.196 MB / 0.493 GB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.521e-05/0.5202, allocations: 52 kB / 0.493 GB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001747/0.5204, allocations: 95.91 kB / 0.4931 GB, free: 7.367 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001617/0.522, allocations: 0.877 MB / 0.494 GB, free: 6.488 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00211/0.5242, allocations: 1.209 MB / 0.4952 GB, free: 5.215 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.524e-05/0.5242, allocations: 7.906 kB / 0.4952 GB, free: 5.207 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.969e-05/0.5243, allocations: 4 kB / 0.4952 GB, free: 5.203 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.197e-05/0.5244, allocations: 43.94 kB / 0.4952 GB, free: 5.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007978/0.5323, allocations: 6.113 MB / 0.5012 GB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.5335, allocations: 0.5401 MB / 0.5017 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006997/0.5342, allocations: 395 kB / 0.5021 GB, free: 13.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.098e-05/0.5343, allocations: 8.562 kB / 0.5021 GB, free: 13.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.5343, allocations: 35.12 kB / 0.5021 GB, free: 13.76 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 3.326e-06/0.5344, allocations: 4 kB / 0.5021 GB, free: 13.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.003223/0.5376, allocations: 1.67 MB / 0.5038 GB, free: 12.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.247e-05/0.5377, allocations: 111.6 kB / 0.5039 GB, free: 11.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.5388, allocations: 0.8936 MB / 0.5048 GB, free: 10.99 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.5389, allocations: 25.7 kB / 0.5048 GB, free: 10.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005667/0.5395, allocations: 0.8636 MB / 0.5056 GB, free: 10.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.5396, allocations: 248.3 kB / 0.5059 GB, free: 9.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.5397, allocations: 0 / 0.5059 GB, free: 9.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.5399, allocations: 357.9 kB / 0.5062 GB, free: 9.484 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/0.5402, allocations: 222.6 kB / 0.5064 GB, free: 9.27 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006635/0.5409, allocations: 0.6694 MB / 0.5071 GB, free: 8.387 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005001/0.5414, allocations: 352.3 kB / 0.5074 GB, free: 8.043 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.5414, allocations: 4 kB / 0.5074 GB, free: 8.039 MB / 394.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001774/0.5432, allocations: 1.064 MB / 0.5084 GB, free: 6.953 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.5432, allocations: 12 kB / 0.5085 GB, free: 6.941 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/0.5433, allocations: 16 kB / 0.5085 GB, free: 6.926 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003597/0.5436, allocations: 114.5 kB / 0.5086 GB, free: 6.805 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008399/0.5445, allocations: 271.6 kB / 0.5088 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003131/0.5476, allocations: 4.061 MB / 0.5128 GB, free: 2.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008414/0.5485, allocations: 39.83 kB / 0.5128 GB, free: 2.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.223e-05/0.5486, allocations: 60.05 kB / 0.5129 GB, free: 2.031 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002155/0.5488, allocations: 160.4 kB / 0.5131 GB, free: 1.867 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001183/0.55, allocations: 0.6809 MB / 0.5137 GB, free: 1.168 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.5502, allocations: 126.4 kB / 0.5138 GB, free: 1.043 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.5515, allocations: 0.7029 MB / 0.5145 GB, free: 324 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.5516, allocations: 15.95 kB / 0.5145 GB, free: 308 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.5516, allocations: 0 / 0.5145 GB, free: 308 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.5516, allocations: 7.984 kB / 0.5146 GB, free: 300 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003578/0.5552, allocations: 2.018 MB / 0.5165 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.904e-06/0.5552, allocations: 7.938 kB / 0.5165 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007094/0.5559, allocations: 131.8 kB / 0.5167 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000384/0.5563, allocations: 110.8 kB / 0.5168 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.304e-05/0.5564, allocations: 8 kB / 0.5168 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003855/0.5602, allocations: 4.17 MB / 0.5208 GB, free: 9.402 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.5603, allocations: 8.094 kB / 0.5209 GB, free: 9.395 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.5625, allocations: 1.355 MB / 0.5222 GB, free: 7.902 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005042/0.5631, allocations: 255.6 kB / 0.5224 GB, free: 7.633 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.5632, allocations: 15.98 kB / 0.5224 GB, free: 7.617 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006998/0.5639, allocations: 31.97 kB / 0.5225 GB, free: 7.586 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.5641, allocations: 64.38 kB / 0.5225 GB, free: 7.523 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.684e-05/0.5641, allocations: 24 kB / 0.5225 GB, free: 7.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001113/0.5653, allocations: 0.6556 MB / 0.5232 GB, free: 6.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5653, allocations: 0 / 0.5232 GB, free: 6.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001459/0.5667, allocations: 316 kB / 0.5235 GB, free: 6.531 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003163/0.5699, allocations: 3.144 MB / 0.5266 GB, free: 3.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.5716, allocations: 0.9882 MB / 0.5275 GB, free: 2.234 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.5716, allocations: 0.5 kB / 0.5275 GB, free: 2.234 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007338/0.5724, allocations: 0.632 MB / 0.5281 GB, free: 1.574 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.5738, allocations: 303.3 kB / 0.5284 GB, free: 1.277 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2485/0.8223, allocations: 2.442 MB / 0.5308 GB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001928/0.8243, allocations: 1.249 MB / 0.532 GB, free: 108.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001379/0.8257, allocations: 160.2 kB / 0.5322 GB, free: 108.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/0.8271, allocations: 0.6146 MB / 0.5328 GB, free: 108.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.663e-06/0.8271, allocations: 0 / 0.5328 GB, free: 108.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06557/0.8927, allocations: 26.5 MB / 0.5587 GB, free: 106.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/0.8929, allocations: 158.8 kB / 0.5588 GB, free: 106.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.796/3.689, allocations: 7.844 kB / 0.5588 GB, free: 106.6 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat