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.001712/0.001712, allocations: 180 kB / 17.01 MB, free: 5.125 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.44/1.44, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008488/0.0008488, allocations: 96.09 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002711/0.0002711, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2499, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1079/0.3579, allocations: 94.85 MB / 470.8 MB, free: 1.762 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.3582, allocations: 83.95 kB / 470.8 MB, free: 1.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3174/0.6756, allocations: 44.66 MB / 0.5034 GB, free: 93.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.6757, allocations: 0 / 0.5034 GB, free: 93.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001522/0.6758, allocations: 36.09 kB / 0.5035 GB, free: 93.68 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.004733/0.6806, allocations: 1.835 MB / 0.5053 GB, free: 92.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.6806, allocations: 7.875 kB / 0.5053 GB, free: 92.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005923/0.6812, allocations: 222 kB / 0.5055 GB, free: 92.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.6825, allocations: 283.6 kB / 0.5057 GB, free: 92.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002825/0.6853, allocations: 1.207 MB / 0.5069 GB, free: 92.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.551e-05/0.6854, allocations: 113.2 kB / 0.507 GB, free: 92.17 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002731/0.6857, allocations: 164.9 kB / 0.5072 GB, free: 92.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002835/0.6885, allocations: 1.506 MB / 0.5087 GB, free: 91.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.513e-05/0.6886, allocations: 4.562 kB / 0.5087 GB, free: 91.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/0.6888, allocations: 62.34 kB / 0.5087 GB, free: 91.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.658e-05/0.6888, allocations: 39.38 kB / 0.5088 GB, free: 91.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002099/0.6909, allocations: 1.067 MB / 0.5098 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007318/0.6982, allocations: 6.414 MB / 0.5161 GB, free: 88.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.6996, allocations: 0.6358 MB / 0.5167 GB, free: 87.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.22e-05/0.6997, allocations: 18.31 kB / 0.5167 GB, free: 87.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.6997, allocations: 41.58 kB / 0.5167 GB, free: 87.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.885e-06/0.6997, allocations: 0 / 0.5167 GB, free: 87.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.004335/0.7041, allocations: 2.473 MB / 0.5192 GB, free: 86.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.7041, allocations: 115.9 kB / 0.5193 GB, free: 86.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.7053, allocations: 1.098 MB / 0.5203 GB, free: 85.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.868e-05/0.7053, allocations: 41.45 kB / 0.5204 GB, free: 85.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000407/0.7058, allocations: 0.8633 MB / 0.5212 GB, free: 85.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.7059, allocations: 258.2 kB / 0.5215 GB, free: 85.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/0.7059, allocations: 26.66 kB / 0.5215 GB, free: 85.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.577e-05/0.706, allocations: 352.1 kB / 0.5218 GB, free: 84.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004931/0.7065, allocations: 297.6 kB / 0.5221 GB, free: 84.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006792/0.7072, allocations: 0.7442 MB / 0.5228 GB, free: 83.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006115/0.7078, allocations: 418.4 kB / 0.5232 GB, free: 83.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.7078, allocations: 5.594 kB / 0.5232 GB, free: 83.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001934/0.7098, allocations: 1.303 MB / 0.5245 GB, free: 83.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.7098, allocations: 18.66 kB / 0.5245 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.7098, allocations: 18.12 kB / 0.5246 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004382/0.7103, allocations: 147.9 kB / 0.5247 GB, free: 83.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000767/0.7111, allocations: 261.3 kB / 0.5249 GB, free: 83.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002664/0.7137, allocations: 4.35 MB / 0.5292 GB, free: 78.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009113/0.7147, allocations: 61.02 kB / 0.5292 GB, free: 78.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.449e-05/0.7147, allocations: 55.75 kB / 0.5293 GB, free: 78.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.000605/0.7153, allocations: 360.9 kB / 0.5296 GB, free: 78.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.7155, allocations: 139.7 kB / 0.5298 GB, free: 78.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/0.717, allocations: 0.8774 MB / 0.5306 GB, free: 78.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.7171, allocations: 3.906 kB / 0.5306 GB, free: 78.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.7171, allocations: 11.17 kB / 0.5307 GB, free: 78.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.7171, allocations: 2.719 kB / 0.5307 GB, free: 78.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003188/0.7203, allocations: 2.345 MB / 0.5329 GB, free: 76.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.7203, allocations: 3.031 kB / 0.5329 GB, free: 76.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005335/0.7208, allocations: 131.5 kB / 0.5331 GB, free: 76.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003819/0.7212, allocations: 148.4 kB / 0.5332 GB, free: 76.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.7213, allocations: 20.88 kB / 0.5332 GB, free: 76.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00287/0.7242, allocations: 4.493 MB / 0.5376 GB, free: 72.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.7242, allocations: 9.156 kB / 0.5376 GB, free: 72.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/0.7262, allocations: 1.552 MB / 0.5391 GB, free: 71.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000465/0.7266, allocations: 280.8 kB / 0.5394 GB, free: 71.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.7268, allocations: 22.23 kB / 0.5394 GB, free: 71.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005916/0.7274, allocations: 43.47 kB / 0.5395 GB, free: 71.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.7275, allocations: 59.81 kB / 0.5395 GB, free: 71.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-05/0.7276, allocations: 20 kB / 0.5396 GB, free: 71.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001029/0.7286, allocations: 0.839 MB / 0.5404 GB, free: 70.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7286, allocations: 7.938 kB / 0.5404 GB, free: 70.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0013/0.7299, allocations: 375.3 kB / 0.5407 GB, free: 70.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 () * Number of clocked 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.002681/0.7326, allocations: 3.306 MB / 0.544 GB, free: 66.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.7343, allocations: 1.141 MB / 0.5451 GB, free: 65.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.942e-06/0.7343, allocations: 7.938 kB / 0.5451 GB, free: 65.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008157/0.7352, allocations: 0.7187 MB / 0.5458 GB, free: 65.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001343/0.7365, allocations: 329.3 kB / 0.5461 GB, free: 64.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01606/0.7526, allocations: 18.8 MB / 0.5645 GB, free: 46.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007688/0.7534, allocations: 1.249 MB / 0.5657 GB, free: 44.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008159/0.7542, allocations: 175.1 kB / 0.5659 GB, free: 44.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006907/0.7549, allocations: 0.6242 MB / 0.5665 GB, free: 44.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/0.755, allocations: 0 / 0.5665 GB, free: 44.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05062/0.8056, allocations: 32.4 MB / 0.5981 GB, free: 11.83 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/0.8058, allocations: 232.7 kB / 0.5983 GB, free: 11.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.874/3.68, allocations: 0 / 0.5983 GB, free: 11.58 MB / 378.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