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.001643/0.001643, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002086/0.002086, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.487/1.487, allocations: 230.6 MB / 258.3 MB, free: 8.062 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.003024/0.003024, allocations: 60.95 kB / 378.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3398, allocations: 53.37 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01539/0.3552, allocations: 11.84 MB / 443.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007754/0.363, allocations: 3.283 MB / 447.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002322/0.3653, allocations: 35.88 kB / 447.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00259/0.3679, allocations: 0.6752 MB / 447.8 MB, free: 7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00303/0.3709, allocations: 0.729 MB / 448.5 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001407/0.3723, allocations: 403.5 kB / 448.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004342/0.3767, allocations: 2.242 MB / 451.1 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001684/0.3784, allocations: 0.6498 MB / 451.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00198/0.3803, allocations: 0.8756 MB / 452.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00182/0.3822, allocations: 0.9139 MB / 453.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007768/0.3829, allocations: 216 kB / 453.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001137/0.3841, allocations: 256 kB / 454 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006638/0.3847, allocations: 434.4 kB / 454.5 MB, free: 240 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002194/0.3869, allocations: 1.015 MB / 455.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004963/0.3919, allocations: 2.693 MB / 458.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.3919, allocations: 4 kB / 458.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3919, allocations: 0 / 458.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001201/0.392, allocations: 0 / 458.2 MB, free: 12.51 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.006038/0.3981, allocations: 2.037 MB / 460.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.865e-05/0.3981, allocations: 8.031 kB / 460.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003702/0.3985, allocations: 220.1 kB / 460.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009469/0.3994, allocations: 259.6 kB / 460.7 MB, free: 9.934 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002345/0.4018, allocations: 0.9764 MB / 461.7 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.4019, allocations: 119.2 kB / 461.8 MB, free: 8.809 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003448/0.4023, allocations: 167.9 kB / 461.9 MB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003344/0.4056, allocations: 1.48 MB / 463.4 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.577e-05/0.4057, allocations: 15.88 kB / 463.4 MB, free: 7.074 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001682/0.4058, allocations: 67.94 kB / 463.5 MB, free: 7.008 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.421e-05/0.4059, allocations: 40 kB / 463.5 MB, free: 6.969 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002352/0.4082, allocations: 0.9747 MB / 464.5 MB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01166/0.4199, allocations: 6.388 MB / 470.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009984/0.4209, allocations: 380.1 kB / 471.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005049/0.4214, allocations: 206.1 kB / 471.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.207e-05/0.4215, allocations: 8.422 kB / 471.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006033/0.4221, allocations: 264.8 kB / 471.7 MB, free: 14.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 3.186e-06/0.4221, allocations: 3.938 kB / 471.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.004048/0.4261, allocations: 1.557 MB / 473.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.4262, allocations: 166.7 kB / 473.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002799/0.429, allocations: 1.273 MB / 474.7 MB, free: 11.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001289/0.4292, allocations: 41.69 kB / 474.8 MB, free: 11.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009659/0.4301, allocations: 0.8971 MB / 475.7 MB, free: 10.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003095/0.4304, allocations: 210.3 kB / 475.9 MB, free: 10.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004133/0.4309, allocations: 226.7 kB / 476.1 MB, free: 9.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.4311, allocations: 357.9 kB / 476.4 MB, free: 9.555 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006142/0.4317, allocations: 226.5 kB / 476.7 MB, free: 9.332 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/0.4332, allocations: 0.8111 MB / 477.5 MB, free: 8.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002588/0.4358, allocations: 1.109 MB / 478.6 MB, free: 6.871 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.213e-05/0.4358, allocations: 4 kB / 478.6 MB, free: 6.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004149/0.44, allocations: 1.173 MB / 479.8 MB, free: 5.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.699e-05/0.4401, allocations: 41.7 kB / 479.8 MB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.437e-05/0.4401, allocations: 27.92 kB / 479.8 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000385/0.4405, allocations: 65.64 kB / 479.9 MB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009768/0.4415, allocations: 263.6 kB / 480.2 MB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002545/0.444, allocations: 2.582 MB / 482.7 MB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.4455, allocations: 68.09 kB / 482.8 MB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002188/0.4457, allocations: 60 kB / 482.9 MB, free: 2.34 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.001056/0.4468, allocations: 357.3 kB / 483.2 MB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004669/0.4472, allocations: 147 kB / 483.4 MB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.4487, allocations: 0.5474 MB / 483.9 MB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.4487, allocations: 7.938 kB / 483.9 MB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.118e-06/0.4487, allocations: 4 kB / 483.9 MB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.4487, allocations: 3.984 kB / 483.9 MB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003615/0.4524, allocations: 1.838 MB / 485.8 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.4524, allocations: 4 kB / 485.8 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004322/0.4528, allocations: 95.89 kB / 485.9 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001802/0.453, allocations: 50.16 kB / 485.9 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.453, allocations: 16 kB / 485.9 MB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/0.4553, allocations: 2.539 MB / 488.5 MB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.4553, allocations: 7.938 kB / 488.5 MB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.4569, allocations: 0.9228 MB / 489.4 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006237/0.4576, allocations: 183.1 kB / 489.6 MB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003158/0.4579, allocations: 27.92 kB / 489.6 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007034/0.4586, allocations: 28.11 kB / 489.6 MB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.4587, allocations: 55.84 kB / 489.7 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.4588, allocations: 16 kB / 489.7 MB, free: 11.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001364/0.4601, allocations: 0.8578 MB / 490.6 MB, free: 10.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4601, allocations: 3.938 kB / 490.6 MB, free: 10.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001368/0.4615, allocations: 303.9 kB / 490.9 MB, free: 9.898 MB / 398.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.002104/0.4636, allocations: 1.507 MB / 492.4 MB, free: 8.312 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001857/0.4655, allocations: 0.8967 MB / 493.3 MB, free: 7.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.4655, allocations: 0 / 493.3 MB, free: 7.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007956/0.4663, allocations: 462.8 kB / 493.7 MB, free: 6.902 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002069/0.4683, allocations: 335 kB / 494 MB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02218/0.4905, allocations: 10.93 MB / 0.4931 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001477/0.492, allocations: 1.178 MB / 0.4943 GB, free: 9.621 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008229/0.4928, allocations: 167.3 kB / 0.4944 GB, free: 9.453 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000966/0.4938, allocations: 0.5735 MB / 0.495 GB, free: 8.879 MB / 414.1 MB Notification: Performance of SimCode: time 1.523e-06/0.4938, allocations: 0 / 0.495 GB, free: 8.879 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/0.5983, allocations: 28.75 MB / 0.5231 GB, free: 12.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/13.07, allocations: 7.938 kB / 0.5231 GB, free: 12.43 MB / 446.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.987329917028546] 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'] 13.18003736808896 13.394790395 12.810039938 Calling exit ...