Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 123.8 kB / 20.44 MB, free: 1.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 211 kB / 23.74 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.536/1.536, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2497/0.2497, allocations: 38.53 MB / 352.5 MB, free: 12.51 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 59.91 kB / 492.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3593, allocations: 62.47 MB / 0.542 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.008988/0.3683, allocations: 5.902 MB / 0.5478 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004808/0.3731, allocations: 2.318 MB / 0.55 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005359/0.3736, allocations: 23.69 kB / 0.5501 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009668/0.3746, allocations: 176.1 kB / 0.5502 GB, free: 9.824 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00195/0.3765, allocations: 458.3 kB / 0.5507 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009587/0.3775, allocations: 254.7 kB / 0.5509 GB, free: 9.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002077/0.3796, allocations: 0.8628 MB / 0.5517 GB, free: 8.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007737/0.3804, allocations: 396.2 kB / 0.5521 GB, free: 8.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000773/0.3811, allocations: 363.8 kB / 0.5525 GB, free: 8.289 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006591/0.3818, allocations: 360.7 kB / 0.5528 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001047/0.3819, allocations: 55.72 kB / 0.5529 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004431/0.3823, allocations: 154.3 kB / 0.553 GB, free: 8.012 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002459/0.3826, allocations: 192.3 kB / 0.5532 GB, free: 7.871 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004015/0.383, allocations: 308.4 kB / 0.5535 GB, free: 7.664 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00127/0.3842, allocations: 0.795 MB / 0.5543 GB, free: 7.105 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3843, allocations: 0 / 0.5543 GB, free: 7.105 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3843, allocations: 0 / 0.5543 GB, free: 7.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.3843, allocations: 0 / 0.5543 GB, free: 7.105 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002082/0.3863, allocations: 0.865 MB / 0.5551 GB, free: 6.422 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.303e-05/0.3864, allocations: 12.73 kB / 0.5551 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001248/0.3865, allocations: 82.73 kB / 0.5552 GB, free: 6.344 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.3867, allocations: 66.39 kB / 0.5553 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.3878, allocations: 476 kB / 0.5557 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.692e-05/0.3878, allocations: 33.97 kB / 0.5558 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.388, allocations: 45.14 kB / 0.5558 GB, free: 5.902 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009396/0.3889, allocations: 0.5188 MB / 0.5563 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.3889, allocations: 5.125 kB / 0.5563 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.821e-05/0.389, allocations: 16.03 kB / 0.5563 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.827e-05/0.3891, allocations: 16.06 kB / 0.5563 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005897/0.3896, allocations: 342.9 kB / 0.5567 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/0.3926, allocations: 1.998 MB / 0.5586 GB, free: 3.258 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.3931, allocations: 227.7 kB / 0.5588 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.3932, allocations: 78.61 kB / 0.5589 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.3933, allocations: 4 kB / 0.5589 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003076/0.3936, allocations: 161.9 kB / 0.5591 GB, free: 2.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.894e-06/0.3936, allocations: 0 / 0.5591 GB, free: 2.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001945/0.3955, allocations: 0.8673 MB / 0.5599 GB, free: 1.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.3956, allocations: 136.5 kB / 0.56 GB, free: 1.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005944/0.3962, allocations: 446.1 kB / 0.5605 GB, free: 1.234 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.3962, allocations: 33.7 kB / 0.5605 GB, free: 1.195 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.3965, allocations: 312.4 kB / 0.5608 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.839e-05/0.3966, allocations: 95.22 kB / 0.5609 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.3967, allocations: 70.09 kB / 0.561 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.3969, allocations: 358.7 kB / 0.5613 GB, free: 364 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.397, allocations: 84.83 kB / 0.5614 GB, free: 280 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002987/0.3973, allocations: 225.4 kB / 0.5616 GB, free: 15.99 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004651/0.3978, allocations: 328 kB / 0.5619 GB, free: 15.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3978, allocations: 0 / 0.5619 GB, free: 15.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009566/0.3988, allocations: 441.9 kB / 0.5623 GB, free: 15.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.3988, allocations: 8 kB / 0.5623 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3988, allocations: 4 kB / 0.5623 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004454/0.3992, allocations: 92.77 kB / 0.5624 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.3995, allocations: 80.06 kB / 0.5625 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002351/0.4019, allocations: 1.713 MB / 0.5642 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.4022, allocations: 19.98 kB / 0.5642 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-05/0.4023, allocations: 23.94 kB / 0.5642 GB, free: 13.12 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000317/0.4026, allocations: 205.8 kB / 0.5644 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.534e-05/0.4027, allocations: 55.61 kB / 0.5645 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006394/0.4033, allocations: 282.2 kB / 0.5647 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.4033, allocations: 4 kB / 0.5647 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.4033, allocations: 8 kB / 0.5647 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.4033, allocations: 3.984 kB / 0.5648 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.4047, allocations: 0.7587 MB / 0.5655 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.4047, allocations: 7.938 kB / 0.5655 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002842/0.405, allocations: 35.98 kB / 0.5655 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002314/0.4052, allocations: 56.73 kB / 0.5656 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.4052, allocations: 8 kB / 0.5656 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001534/0.4068, allocations: 1.436 MB / 0.567 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.4068, allocations: 0 / 0.567 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008324/0.4076, allocations: 477.5 kB / 0.5675 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001964/0.4078, allocations: 63.69 kB / 0.5675 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.941e-05/0.4078, allocations: 12.06 kB / 0.5675 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.4081, allocations: 15.92 kB / 0.5675 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.283e-05/0.4082, allocations: 19.97 kB / 0.5676 GB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-05/0.4082, allocations: 11.98 kB / 0.5676 GB, free: 9.465 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004384/0.4086, allocations: 299.1 kB / 0.5679 GB, free: 9.172 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4086, allocations: 0 / 0.5679 GB, free: 9.172 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006417/0.4093, allocations: 131.9 kB / 0.568 GB, free: 9.043 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002847/0.4121, allocations: 1.378 MB / 0.5693 GB, free: 7.797 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009637/0.4131, allocations: 391.1 kB / 0.5697 GB, free: 7.402 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4131, allocations: 0 / 0.5697 GB, free: 7.402 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004404/0.4135, allocations: 230.5 kB / 0.5699 GB, free: 7.164 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008576/0.4144, allocations: 133.2 kB / 0.57 GB, free: 7.035 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007145/0.4215, allocations: 4.293 MB / 0.5742 GB, free: 2.539 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000621/0.4221, allocations: 0.8816 MB / 0.5751 GB, free: 1.629 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003101/0.4225, allocations: 68.22 kB / 0.5752 GB, free: 1.562 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.4227, allocations: 183.3 kB / 0.5753 GB, free: 1.383 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4227, allocations: 0 / 0.5753 GB, free: 1.383 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07032/0.493, allocations: 12.36 MB / 0.5874 GB, free: 5.117 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.28, allocations: 17.67 kB / 0.5874 GB, free: 5.102 MB / 430.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.48877161100245] Failed to read output from testmodel.py, exit status != 0: 14.506239266003831 14.521139699 14.133663318 Calling exit ...