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_withLosses.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.001777/0.001777, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002254/0.002254, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.599/1.599, allocations: 230.6 MB / 258.3 MB, free: 8.02 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_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_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_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.002215/0.002215, allocations: 72.75 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.323, allocations: 53.35 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01604/0.3391, allocations: 12.26 MB / 444.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007197/0.3463, allocations: 3.323 MB / 447.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001992/0.3483, allocations: 43.81 kB / 447.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00253/0.3508, allocations: 0.6879 MB / 448.2 MB, free: 6.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003105/0.3539, allocations: 0.7949 MB / 449 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00134/0.3552, allocations: 403.5 kB / 449.4 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004092/0.3593, allocations: 2.421 MB / 451.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00172/0.361, allocations: 0.6461 MB / 452.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002065/0.3631, allocations: 0.9379 MB / 453.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001891/0.365, allocations: 0.9878 MB / 454.4 MB, free: 240 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006427/0.3656, allocations: 232 kB / 454.6 MB, free: 8 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00103/0.3667, allocations: 268 kB / 454.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006729/0.3673, allocations: 454.3 kB / 455.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00199/0.3693, allocations: 1.077 MB / 456.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004493/0.3738, allocations: 2.841 MB / 459.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3738, allocations: 0 / 459.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3738, allocations: 0 / 459.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001114/0.3739, allocations: 0 / 459.3 MB, free: 11.37 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005206/0.3791, allocations: 2.149 MB / 461.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.3792, allocations: 16.03 kB / 461.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000281/0.3795, allocations: 216.1 kB / 461.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009632/0.3804, allocations: 287.5 kB / 461.9 MB, free: 8.656 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.3825, allocations: 1.055 MB / 463 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.3826, allocations: 115.2 kB / 463.1 MB, free: 7.445 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002208/0.3829, allocations: 156 kB / 463.2 MB, free: 7.293 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002746/0.3856, allocations: 1.508 MB / 464.8 MB, free: 5.723 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.016e-05/0.3857, allocations: 7.953 kB / 464.8 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.3858, allocations: 71.94 kB / 464.8 MB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.76e-05/0.3858, allocations: 36 kB / 464.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002175/0.388, allocations: 1.045 MB / 465.9 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009236/0.3973, allocations: 6.109 MB / 472 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.3988, allocations: 0.5765 MB / 472.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009319/0.3998, allocations: 434.4 kB / 473 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.805e-05/0.3998, allocations: 4.656 kB / 473 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/0.3999, allocations: 39.22 kB / 473.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.705e-06/0.3999, allocations: 0 / 473.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005829/0.4057, allocations: 2.177 MB / 475.2 MB, free: 10.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.4058, allocations: 111.5 kB / 475.4 MB, free: 10.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002251/0.408, allocations: 1.302 MB / 476.7 MB, free: 9.426 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.687e-05/0.4081, allocations: 41.7 kB / 476.7 MB, free: 9.379 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007688/0.4089, allocations: 0.8671 MB / 477.6 MB, free: 8.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/0.4091, allocations: 277.7 kB / 477.8 MB, free: 8.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003085/0.4095, allocations: 206.8 kB / 478 MB, free: 8.023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.4096, allocations: 349.9 kB / 478.4 MB, free: 7.676 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006429/0.4103, allocations: 290.5 kB / 478.7 MB, free: 7.391 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.4113, allocations: 0.7269 MB / 479.4 MB, free: 6.453 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001745/0.4131, allocations: 1.092 MB / 480.5 MB, free: 5.152 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.4131, allocations: 4 kB / 480.5 MB, free: 5.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002695/0.4158, allocations: 1.265 MB / 481.7 MB, free: 3.867 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.4158, allocations: 12 kB / 481.8 MB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.417e-05/0.4158, allocations: 19.94 kB / 481.8 MB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005657/0.4164, allocations: 130.8 kB / 481.9 MB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008729/0.4173, allocations: 255.6 kB / 482.2 MB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004745/0.422, allocations: 4.328 MB / 486.5 MB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.4231, allocations: 63.91 kB / 486.5 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.98e-05/0.4232, allocations: 52.12 kB / 486.6 MB, free: 14.66 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006812/0.4239, allocations: 365.4 kB / 487 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.4241, allocations: 147.1 kB / 487.1 MB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.426, allocations: 0.8217 MB / 487.9 MB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.426, allocations: 11.94 kB / 487.9 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.426, allocations: 0 / 487.9 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.426, allocations: 7.984 kB / 487.9 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004321/0.4303, allocations: 2.293 MB / 490.2 MB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.4304, allocations: 7.938 kB / 490.2 MB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005749/0.4309, allocations: 123.8 kB / 490.4 MB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000471/0.4314, allocations: 142.8 kB / 490.5 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.048e-05/0.4315, allocations: 19.98 kB / 490.5 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004738/0.4362, allocations: 4.474 MB / 495 MB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.485e-06/0.4362, allocations: 11.92 kB / 495 MB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002713/0.4389, allocations: 1.293 MB / 496.3 MB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006442/0.4396, allocations: 215 kB / 496.5 MB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/0.4397, allocations: 16.14 kB / 496.5 MB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006282/0.4403, allocations: 39.97 kB / 496.6 MB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.4405, allocations: 72.25 kB / 496.6 MB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.4405, allocations: 20 kB / 496.7 MB, free: 4.035 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001416/0.4419, allocations: 0.882 MB / 497.5 MB, free: 3.152 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4419, allocations: 0 / 497.5 MB, free: 3.152 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001262/0.4432, allocations: 328 kB / 497.9 MB, free: 2.832 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003014/0.4462, allocations: 1.896 MB / 499.8 MB, free: 0.8594 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002161/0.4484, allocations: 1.082 MB / 0.4891 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.4484, allocations: 4 kB / 0.4891 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.4495, allocations: 0.687 MB / 0.4898 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.4513, allocations: 371.2 kB / 0.4901 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02022/0.4716, allocations: 11.72 MB / 0.5016 GB, free: 2.238 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.4726, allocations: 1.21 MB / 0.5027 GB, free: 1 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007674/0.4734, allocations: 175.6 kB / 0.5029 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008565/0.4742, allocations: 0.6164 MB / 0.5035 GB, free: 212 kB / 414.1 MB Notification: Performance of SimCode: time 1.412e-06/0.4742, allocations: 3.938 kB / 0.5035 GB, free: 208 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08849/0.5627, allocations: 32.18 MB / 0.535 GB, free: 352 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.07/15.63, allocations: 8 kB / 0.535 GB, free: 344 kB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_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_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.71755721559748] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcpm1.la.i', 'dcpm2.la.i', 'loadInertia1.phi', 'loadInertia1.w', 'loadInertia2.phi', 'loadInertia2.w'] 16.083718752022833 16.099225176 15.722532598 Calling exit ...