Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0-beta_om_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_1_0-beta_om_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/ModelicaServices trunk/package.mo): time 0.001534/0.001534, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001629/0.001629, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.408/1.408, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 67.88 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2881, allocations: 50.55 MB / 409.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01409/0.3022, allocations: 11.76 MB / 420.8 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006906/0.3092, allocations: 3.246 MB / 424.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002018/0.3113, allocations: 35.88 kB / 424.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002191/0.3135, allocations: 0.6557 MB / 424.8 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002789/0.3163, allocations: 0.6665 MB / 425.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.3175, allocations: 399.5 kB / 425.8 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003396/0.3209, allocations: 2.241 MB / 428.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001499/0.3224, allocations: 0.9967 MB / 429.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001634/0.3241, allocations: 0.8443 MB / 429.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001333/0.3254, allocations: 0.91 MB / 430.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003721/0.3258, allocations: 219.9 kB / 431 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006096/0.3264, allocations: 259.9 kB / 431.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003857/0.3268, allocations: 430.4 kB / 431.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001251/0.3281, allocations: 1.015 MB / 432.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003474/0.3316, allocations: 2.689 MB / 435.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3316, allocations: 0 / 435.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3316, allocations: 0 / 435.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.571e-05/0.3317, allocations: 4 kB / 435.4 MB, free: 6.914 MB / 350.1 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.004028/0.3357, allocations: 2.109 MB / 437.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.3358, allocations: 15.97 kB / 437.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002673/0.336, allocations: 220.1 kB / 437.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007817/0.3368, allocations: 263.6 kB / 438 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.3386, allocations: 1.053 MB / 439.1 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.349e-05/0.3387, allocations: 119.2 kB / 439.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/0.339, allocations: 159.9 kB / 439.3 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002558/0.3416, allocations: 1.491 MB / 440.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.886e-05/0.3416, allocations: 4 kB / 440.8 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.3418, allocations: 75.94 kB / 440.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-05/0.3418, allocations: 36 kB / 441 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.3437, allocations: 0.9707 MB / 441.9 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008903/0.3526, allocations: 6.545 MB / 448.5 MB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008287/0.3535, allocations: 404.1 kB / 448.9 MB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004285/0.3539, allocations: 218.1 kB / 449.1 MB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.537e-05/0.354, allocations: 12.42 kB / 449.1 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005207/0.3545, allocations: 260.8 kB / 449.3 MB, free: 8.414 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 1.964e-06/0.3545, allocations: 0 / 449.3 MB, free: 8.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003457/0.358, allocations: 1.792 MB / 451.1 MB, free: 6.527 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.3581, allocations: 162.8 kB / 451.3 MB, free: 6.332 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0019/0.36, allocations: 1.277 MB / 452.6 MB, free: 5.039 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.538e-05/0.3601, allocations: 41.7 kB / 452.6 MB, free: 4.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007865/0.3609, allocations: 0.8973 MB / 453.5 MB, free: 4.086 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.3611, allocations: 214.2 kB / 453.7 MB, free: 3.875 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003048/0.3614, allocations: 218.8 kB / 453.9 MB, free: 3.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3615, allocations: 357.9 kB / 454.3 MB, free: 3.301 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004498/0.362, allocations: 226.5 kB / 454.5 MB, free: 3.078 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009373/0.3629, allocations: 0.8112 MB / 455.3 MB, free: 1.988 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.3646, allocations: 1.114 MB / 456.4 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.053e-05/0.3646, allocations: 8 kB / 456.4 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002483/0.3671, allocations: 1.173 MB / 457.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.041e-05/0.3672, allocations: 41.69 kB / 457.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.94e-05/0.3672, allocations: 24.62 kB / 457.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002771/0.3675, allocations: 69.7 kB / 457.7 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007664/0.3683, allocations: 267.4 kB / 458 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002244/0.3705, allocations: 2.781 MB / 460.8 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.3715, allocations: 68.02 kB / 460.9 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.481e-05/0.3716, allocations: 64 kB / 460.9 MB, free: 11.81 MB / 382.1 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006044/0.3722, allocations: 350.5 kB / 461.3 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/0.3724, allocations: 143 kB / 461.4 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.3735, allocations: 0.5528 MB / 461.9 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3735, allocations: 4 kB / 462 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3735, allocations: 0 / 462 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.3735, allocations: 7.984 kB / 462 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002797/0.3763, allocations: 1.874 MB / 463.8 MB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.3764, allocations: 4 kB / 463.8 MB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004134/0.3768, allocations: 95.88 kB / 463.9 MB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001498/0.3769, allocations: 45.7 kB / 464 MB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.377, allocations: 20.34 kB / 464 MB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002046/0.379, allocations: 2.746 MB / 466.7 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.3791, allocations: 7.938 kB / 466.7 MB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.3807, allocations: 0.9325 MB / 467.7 MB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000513/0.3812, allocations: 256.2 kB / 467.9 MB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.3813, allocations: 19.98 kB / 468 MB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005012/0.3818, allocations: 31.98 kB / 468 MB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.382, allocations: 51.81 kB / 468 MB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/0.382, allocations: 20 kB / 468.1 MB, free: 4.145 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00134/0.3834, allocations: 0.8422 MB / 468.9 MB, free: 3.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3834, allocations: 0 / 468.9 MB, free: 3.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001269/0.3847, allocations: 308 kB / 469.2 MB, free: 3 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001995/0.3867, allocations: 1.52 MB / 470.7 MB, free: 1.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.3884, allocations: 0.9219 MB / 471.6 MB, free: 460 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.3884, allocations: 8.125 kB / 471.6 MB, free: 452 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007607/0.3892, allocations: 464.8 kB / 472.1 MB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/0.3908, allocations: 345.7 kB / 472.4 MB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01618/0.407, allocations: 10.93 MB / 483.4 MB, free: 3.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008706/0.4079, allocations: 1.178 MB / 484.5 MB, free: 2.672 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006166/0.4085, allocations: 179.3 kB / 484.7 MB, free: 2.492 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006768/0.4092, allocations: 0.5657 MB / 485.3 MB, free: 1.926 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4092, allocations: 0 / 485.3 MB, free: 1.926 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0709/0.4801, allocations: 27.8 MB / 0.5011 GB, free: 6.488 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.38, allocations: 15.44 kB / 0.5011 GB, free: 6.477 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1)