Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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.001444/0.001444, allocations: 180.8 kB / 16.38 MB, free: 5.762 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.301/1.301, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0008566/0.0008568, allocations: 99.62 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002601/0.0002601, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2317, allocations: 50.39 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.3469, allocations: 95.75 MB / 497.3 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.3472, allocations: 87.95 kB / 497.4 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2934/0.6406, allocations: 40.73 MB / 0.5255 GB, free: 87.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6407, allocations: 0 / 0.5255 GB, free: 87.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001407/0.6408, allocations: 35.94 kB / 0.5256 GB, free: 87.54 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004421/0.6452, allocations: 1.756 MB / 0.5273 GB, free: 85.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.6453, allocations: 8.562 kB / 0.5273 GB, free: 85.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000591/0.6459, allocations: 223.9 kB / 0.5275 GB, free: 85.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001076/0.647, allocations: 261.6 kB / 0.5278 GB, free: 85.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002465/0.6495, allocations: 1.101 MB / 0.5288 GB, free: 84.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.6496, allocations: 119 kB / 0.5289 GB, free: 83.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002803/0.6499, allocations: 159.9 kB / 0.5291 GB, free: 83.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002598/0.6525, allocations: 1.468 MB / 0.5305 GB, free: 82.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-05/0.6526, allocations: 11.84 kB / 0.5305 GB, free: 82.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.6527, allocations: 64 kB / 0.5306 GB, free: 82.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.45e-05/0.6527, allocations: 40 kB / 0.5306 GB, free: 82.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001882/0.6546, allocations: 0.9786 MB / 0.5316 GB, free: 81.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008303/0.663, allocations: 6.655 MB / 0.5381 GB, free: 74.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007598/0.6638, allocations: 412.1 kB / 0.5385 GB, free: 73.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.119e-05/0.6638, allocations: 4.438 kB / 0.5385 GB, free: 73.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004525/0.6643, allocations: 276.8 kB / 0.5388 GB, free: 73.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.515e-06/0.6643, allocations: 0 / 0.5388 GB, free: 73.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.003245/0.6675, allocations: 1.805 MB / 0.5405 GB, free: 71.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.6676, allocations: 162.7 kB / 0.5407 GB, free: 71.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001452/0.6691, allocations: 1.079 MB / 0.5417 GB, free: 70.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.216e-05/0.6691, allocations: 41.64 kB / 0.5418 GB, free: 70.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005567/0.6697, allocations: 0.8715 MB / 0.5426 GB, free: 69.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.6698, allocations: 205.7 kB / 0.5428 GB, free: 69.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.434e-05/0.6699, allocations: 20 kB / 0.5428 GB, free: 69.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.482e-05/0.67, allocations: 349.9 kB / 0.5432 GB, free: 68.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004065/0.6704, allocations: 238.5 kB / 0.5434 GB, free: 68.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006134/0.671, allocations: 0.8151 MB / 0.5442 GB, free: 67.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000579/0.6716, allocations: 403.1 kB / 0.5446 GB, free: 67.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.6716, allocations: 8 kB / 0.5446 GB, free: 67.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001704/0.6733, allocations: 1.188 MB / 0.5457 GB, free: 65.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.71e-05/0.6734, allocations: 41.69 kB / 0.5458 GB, free: 65.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.533e-05/0.6734, allocations: 20.75 kB / 0.5458 GB, free: 65.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002463/0.6737, allocations: 73.78 kB / 0.5459 GB, free: 65.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007269/0.6744, allocations: 267.6 kB / 0.5461 GB, free: 65.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.6757, allocations: 2.587 MB / 0.5487 GB, free: 62.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.6768, allocations: 71.8 kB / 0.5487 GB, free: 62.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.839e-05/0.6769, allocations: 60 kB / 0.5488 GB, free: 62.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007388/0.6777, allocations: 365.4 kB / 0.5491 GB, free: 62.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/0.6779, allocations: 130.4 kB / 0.5493 GB, free: 62.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.679, allocations: 0.5607 MB / 0.5498 GB, free: 61.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.679, allocations: 11.94 kB / 0.5498 GB, free: 61.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.679, allocations: 0 / 0.5498 GB, free: 61.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.679, allocations: 3.953 kB / 0.5498 GB, free: 61.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002911/0.6819, allocations: 1.859 MB / 0.5516 GB, free: 59.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.682, allocations: 4 kB / 0.5516 GB, free: 59.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004249/0.6824, allocations: 104.3 kB / 0.5517 GB, free: 59.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001579/0.6826, allocations: 49.69 kB / 0.5518 GB, free: 59.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.371e-05/0.6826, allocations: 16 kB / 0.5518 GB, free: 59.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.6839, allocations: 2.556 MB / 0.5543 GB, free: 56.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.6839, allocations: 15.91 kB / 0.5543 GB, free: 56.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.6853, allocations: 1.132 MB / 0.5554 GB, free: 55.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004988/0.6858, allocations: 255.4 kB / 0.5557 GB, free: 54.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002396/0.686, allocations: 15.94 kB / 0.5557 GB, free: 54.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006018/0.6866, allocations: 39.97 kB / 0.5557 GB, free: 54.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.6868, allocations: 51.83 kB / 0.5558 GB, free: 54.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.6868, allocations: 20 kB / 0.5558 GB, free: 54.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001086/0.6879, allocations: 0.8071 MB / 0.5566 GB, free: 53.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6879, allocations: 0 / 0.5566 GB, free: 53.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00127/0.6892, allocations: 339.9 kB / 0.5569 GB, free: 53.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001906/0.6911, allocations: 2.822 MB / 0.5597 GB, free: 50.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001412/0.6925, allocations: 0.9376 MB / 0.5606 GB, free: 49.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.6925, allocations: 4 kB / 0.5606 GB, free: 49.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005895/0.6931, allocations: 477.6 kB / 0.561 GB, free: 49.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.6946, allocations: 318.1 kB / 0.5613 GB, free: 48.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/0.7096, allocations: 20.72 MB / 0.5816 GB, free: 27.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007043/0.7103, allocations: 1.209 MB / 0.5827 GB, free: 26.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007679/0.7111, allocations: 171.3 kB / 0.5829 GB, free: 26.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006117/0.7118, allocations: 0.5852 MB / 0.5835 GB, free: 25.43 MB / 378.7 MB Notification: Performance of SimCode: time 1.633e-06/0.7118, allocations: 0 / 0.5835 GB, free: 25.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04865/0.7604, allocations: 28.39 MB / 0.6112 GB, free: 13.41 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001991/0.7607, allocations: 227 kB / 0.6114 GB, free: 13.16 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.821/3.582, allocations: 0 / 0.6114 GB, free: 13.16 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat