Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008887/0.0008887, allocations: 95.09 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.0002599, allocations: 4 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2154, allocations: 50.42 MB / 401.6 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1134/0.3289, allocations: 95.98 MB / 497.6 MB, free: 316 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.3292, allocations: 87.95 kB / 497.7 MB, free: 228 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3176/0.6468, allocations: 44.67 MB / 0.5296 GB, free: 83.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6468, allocations: 0 / 0.5296 GB, free: 83.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.784e-05/0.6469, allocations: 43.94 kB / 0.5297 GB, free: 83.11 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.003064/0.65, allocations: 1.838 MB / 0.5315 GB, free: 81.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.6501, allocations: 12.56 kB / 0.5315 GB, free: 81.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002458/0.6503, allocations: 219.9 kB / 0.5317 GB, free: 80.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008169/0.6511, allocations: 286.2 kB / 0.532 GB, free: 80.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001956/0.6531, allocations: 1.22 MB / 0.5331 GB, free: 79.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.542e-05/0.6532, allocations: 111.1 kB / 0.5333 GB, free: 79.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001718/0.6534, allocations: 155.9 kB / 0.5334 GB, free: 79.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/0.6555, allocations: 1.496 MB / 0.5349 GB, free: 77.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.383e-05/0.6556, allocations: 7.906 kB / 0.5349 GB, free: 77.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001087/0.6557, allocations: 60 kB / 0.5349 GB, free: 77.53 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.6557, allocations: 43.94 kB / 0.535 GB, free: 77.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.6575, allocations: 1.069 MB / 0.536 GB, free: 76.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006551/0.664, allocations: 6.396 MB / 0.5423 GB, free: 69.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.6655, allocations: 0.6474 MB / 0.5429 GB, free: 69.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.269e-05/0.6655, allocations: 16.53 kB / 0.5429 GB, free: 69.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.6655, allocations: 39.12 kB / 0.5429 GB, free: 68.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.525e-06/0.6655, allocations: 0 / 0.5429 GB, free: 68.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.004375/0.6699, allocations: 2.479 MB / 0.5454 GB, free: 66.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.67, allocations: 115.4 kB / 0.5455 GB, free: 66.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.6712, allocations: 1.107 MB / 0.5466 GB, free: 65.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.6713, allocations: 37.7 kB / 0.5466 GB, free: 65.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00041/0.6717, allocations: 0.8609 MB / 0.5474 GB, free: 64.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.6718, allocations: 260.3 kB / 0.5477 GB, free: 63.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.901e-05/0.6719, allocations: 20 kB / 0.5477 GB, free: 63.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.2e-05/0.672, allocations: 353.9 kB / 0.548 GB, free: 63.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005202/0.6725, allocations: 302.4 kB / 0.5483 GB, free: 63.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006627/0.6732, allocations: 0.7412 MB / 0.549 GB, free: 62.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006179/0.6738, allocations: 415 kB / 0.5494 GB, free: 61.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.6738, allocations: 4 kB / 0.5494 GB, free: 61.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002017/0.6758, allocations: 1.311 MB / 0.5507 GB, free: 60.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.6759, allocations: 12 kB / 0.5507 GB, free: 60.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.6759, allocations: 16 kB / 0.5508 GB, free: 60.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004701/0.6764, allocations: 150.5 kB / 0.5509 GB, free: 60.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007803/0.6772, allocations: 267.5 kB / 0.5512 GB, free: 60.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002854/0.68, allocations: 4.332 MB / 0.5554 GB, free: 55.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.6812, allocations: 63.83 kB / 0.5554 GB, free: 55.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.576e-05/0.6813, allocations: 56 kB / 0.5555 GB, free: 55.33 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.0006621/0.6819, allocations: 358.3 kB / 0.5558 GB, free: 54.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.6821, allocations: 138.3 kB / 0.556 GB, free: 54.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.6837, allocations: 0.8764 MB / 0.5568 GB, free: 53.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.6837, allocations: 12 kB / 0.5568 GB, free: 53.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.6837, allocations: 3.984 kB / 0.5568 GB, free: 53.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.6837, allocations: 7.953 kB / 0.5568 GB, free: 53.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/0.687, allocations: 2.349 MB / 0.5591 GB, free: 51.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.687, allocations: 4 kB / 0.5591 GB, free: 51.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005475/0.6875, allocations: 131.8 kB / 0.5593 GB, free: 51.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004001/0.688, allocations: 142.9 kB / 0.5594 GB, free: 51.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/0.688, allocations: 23.98 kB / 0.5594 GB, free: 51.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002938/0.6909, allocations: 4.496 MB / 0.5638 GB, free: 46.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.691, allocations: 4.031 kB / 0.5638 GB, free: 46.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/0.6931, allocations: 1.56 MB / 0.5654 GB, free: 44.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004549/0.6935, allocations: 275.4 kB / 0.5656 GB, free: 44.22 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/0.6937, allocations: 16 kB / 0.5656 GB, free: 44.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006259/0.6943, allocations: 48.34 kB / 0.5657 GB, free: 44.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.6944, allocations: 64.38 kB / 0.5657 GB, free: 44.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.469e-05/0.6945, allocations: 20 kB / 0.5658 GB, free: 44.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009925/0.6955, allocations: 0.8351 MB / 0.5666 GB, free: 43.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6955, allocations: 4 kB / 0.5666 GB, free: 43.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001215/0.6967, allocations: 375.9 kB / 0.5669 GB, free: 42.87 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.002664/0.6994, allocations: 3.306 MB / 0.5702 GB, free: 39.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.7011, allocations: 1.14 MB / 0.5713 GB, free: 38.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.7011, allocations: 4 kB / 0.5713 GB, free: 38.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000821/0.7019, allocations: 0.7193 MB / 0.572 GB, free: 37.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001515/0.7034, allocations: 332.9 kB / 0.5723 GB, free: 37.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01612/0.7196, allocations: 18.8 MB / 0.5907 GB, free: 17.69 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007258/0.7203, allocations: 1.249 MB / 0.5919 GB, free: 16.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007987/0.7211, allocations: 175.8 kB / 0.592 GB, free: 16.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006888/0.7218, allocations: 0.6203 MB / 0.5926 GB, free: 15.61 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.7219, allocations: 0 / 0.5926 GB, free: 15.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05584/0.7777, allocations: 32.41 MB / 0.6243 GB, free: 15.61 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.7779, allocations: 224.4 kB / 0.6245 GB, free: 15.37 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.952/3.73, allocations: 0 / 0.6245 GB, free: 15.37 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat