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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001754/0.001754, allocations: 122.6 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002013/0.002013, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.47/1.47, allocations: 230.5 MB / 254.8 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001971/0.001971, allocations: 75.81 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1265, allocations: 53.31 MB / 427 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01557/0.1421, allocations: 11.81 MB / 438.8 MB, free: 8.949 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007621/0.1497, allocations: 3.261 MB / 442.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002122/0.1519, allocations: 39.88 kB / 442.1 MB, free: 5.637 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002099/0.154, allocations: 0.6752 MB / 442.8 MB, free: 4.957 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002433/0.1564, allocations: 0.729 MB / 443.5 MB, free: 4.223 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009281/0.1573, allocations: 399.5 kB / 443.9 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003262/0.1606, allocations: 2.247 MB / 446.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00104/0.1616, allocations: 0.6532 MB / 446.8 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2188/0.3804, allocations: 0.8748 MB / 447.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001637/0.382, allocations: 0.9132 MB / 448.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006129/0.3826, allocations: 217.4 kB / 448.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006808/0.3833, allocations: 257.1 kB / 449.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002406/0.3836, allocations: 428.5 kB / 449.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009696/0.3845, allocations: 1.015 MB / 450.5 MB, free: 10.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004056/0.3886, allocations: 2.685 MB / 453.2 MB, free: 9.973 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.064e-05/0.3886, allocations: 3.812 kB / 453.2 MB, free: 9.973 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3886, allocations: 0 / 453.2 MB, free: 9.973 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001157/0.3887, allocations: 0 / 453.2 MB, free: 9.973 MB / 366.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.005187/0.3939, allocations: 2.117 MB / 455.3 MB, free: 8.895 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/0.394, allocations: 9.781 kB / 455.3 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003292/0.3943, allocations: 222.1 kB / 455.5 MB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009692/0.3953, allocations: 264.6 kB / 455.8 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001944/0.3972, allocations: 1.054 MB / 456.8 MB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.11e-05/0.3973, allocations: 113.6 kB / 457 MB, free: 8.348 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002246/0.3975, allocations: 160.2 kB / 457.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002708/0.4002, allocations: 1.49 MB / 458.6 MB, free: 8.109 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.656e-05/0.4003, allocations: 11.86 kB / 458.6 MB, free: 8.105 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.4004, allocations: 65.25 kB / 458.7 MB, free: 8.105 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.732e-05/0.4005, allocations: 37.97 kB / 458.7 MB, free: 8.105 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/0.4023, allocations: 0.9738 MB / 459.7 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007728/0.4101, allocations: 6.534 MB / 466.2 MB, free: 3.504 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007736/0.4108, allocations: 378.5 kB / 466.6 MB, free: 3.355 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004092/0.4112, allocations: 206 kB / 466.8 MB, free: 3.277 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.4113, allocations: 5.875 kB / 466.8 MB, free: 3.277 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005598/0.4118, allocations: 278 kB / 467.1 MB, free: 3.133 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.095e-06/0.4118, allocations: 0 / 467.1 MB, free: 3.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003783/0.4156, allocations: 1.783 MB / 468.8 MB, free: 1.996 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.219e-05/0.4157, allocations: 164.2 kB / 469 MB, free: 1.809 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001757/0.4174, allocations: 1.277 MB / 470.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.4175, allocations: 36.45 kB / 470.3 MB, free: 1.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005615/0.4181, allocations: 0.8932 MB / 471.2 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.4182, allocations: 214.3 kB / 471.4 MB, free: 372 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002577/0.4184, allocations: 223.1 kB / 471.6 MB, free: 244 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.4186, allocations: 354.8 kB / 472 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004537/0.419, allocations: 231.7 kB / 472.2 MB, free: 15.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009371/0.42, allocations: 0.8045 MB / 473 MB, free: 14.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.4214, allocations: 1.118 MB / 474.1 MB, free: 14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.267e-05/0.4215, allocations: 5.719 kB / 474.1 MB, free: 14 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002312/0.4238, allocations: 1.174 MB / 475.3 MB, free: 13.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.346e-05/0.4238, allocations: 40.83 kB / 475.4 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.893e-05/0.4239, allocations: 23.78 kB / 475.4 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002788/0.4241, allocations: 66.27 kB / 475.4 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008244/0.425, allocations: 274.2 kB / 475.7 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002444/0.4274, allocations: 2.772 MB / 478.5 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001364/0.4288, allocations: 72.28 kB / 478.6 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.4289, allocations: 58.16 kB / 478.6 MB, free: 10.68 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.0007621/0.4296, allocations: 367.8 kB / 479 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.4299, allocations: 136 kB / 479.1 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.4312, allocations: 0.5492 MB / 479.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.4312, allocations: 8.406 kB / 479.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4312, allocations: 0 / 479.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.4312, allocations: 5.266 kB / 479.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003665/0.4348, allocations: 1.873 MB / 481.5 MB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.4349, allocations: 4.469 kB / 481.5 MB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004498/0.4353, allocations: 104.2 kB / 481.6 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/0.4355, allocations: 46.77 kB / 481.7 MB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.961e-05/0.4355, allocations: 20.22 kB / 481.7 MB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002291/0.4378, allocations: 2.743 MB / 484.5 MB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/0.4378, allocations: 8.156 kB / 484.5 MB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.4398, allocations: 0.9202 MB / 485.4 MB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007173/0.4405, allocations: 270.5 kB / 485.6 MB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001708/0.4407, allocations: 16.91 kB / 485.7 MB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005552/0.4412, allocations: 36.41 kB / 485.7 MB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.4414, allocations: 52.38 kB / 485.7 MB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.619e-05/0.4414, allocations: 18.22 kB / 485.8 MB, free: 5.344 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001437/0.4428, allocations: 0.8456 MB / 486.6 MB, free: 4.875 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4428, allocations: 4 kB / 486.6 MB, free: 4.871 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001633/0.4445, allocations: 299.9 kB / 486.9 MB, free: 4.848 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.002555/0.447, allocations: 1.517 MB / 488.4 MB, free: 3.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002309/0.4493, allocations: 0.8961 MB / 489.3 MB, free: 3.156 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/0.4493, allocations: 4.094 kB / 489.3 MB, free: 3.156 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008052/0.4501, allocations: 453.8 kB / 489.8 MB, free: 2.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002081/0.4522, allocations: 340.1 kB / 490.1 MB, free: 2.684 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01925/0.4715, allocations: 10.94 MB / 0.4893 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.4725, allocations: 1.178 MB / 0.4904 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008031/0.4733, allocations: 172.7 kB / 0.4906 GB, free: 9.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000782/0.4741, allocations: 0.5696 MB / 0.4912 GB, free: 9.355 MB / 398.1 MB Notification: Performance of SimCode: time 1.353e-06/0.4741, allocations: 0 / 0.4912 GB, free: 9.355 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07664/0.5507, allocations: 28.03 MB / 0.5185 GB, free: 13.73 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.46, allocations: 3.859 kB / 0.5185 GB, free: 13.72 MB / 430.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.128870143555105] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcpm1.ia', 'dcpm1.tauElectrical', 'dcpm2.ia', 'dcpm2.tauElectrical', 'loadInertia1.phi', 'loadInertia1.w', 'loadInertia2.phi', 'loadInertia2.w'] 12.566501629073173 12.587631148 12.194318844 Calling exit ...