Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001728/0.001728, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.00177/0.00177, allocations: 214.7 kB / 23.75 MB, free: 4.668 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.455/1.455, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1833/0.1833, allocations: 38.53 MB / 352.5 MB, free: 12.56 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_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.002011/0.002011, allocations: 71.89 kB / 492.5 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3106, allocations: 62.47 MB / 0.542 GB, free: 444 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007904/0.3185, allocations: 5.91 MB / 0.5478 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003914/0.3224, allocations: 2.314 MB / 0.55 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004292/0.3229, allocations: 24.03 kB / 0.5501 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006235/0.3235, allocations: 173.1 kB / 0.5502 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001226/0.3247, allocations: 457.7 kB / 0.5507 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006863/0.3254, allocations: 267 kB / 0.5509 GB, free: 9.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001312/0.3267, allocations: 0.8585 MB / 0.5517 GB, free: 8.766 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006231/0.3273, allocations: 392.8 kB / 0.5521 GB, free: 8.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007673/0.3281, allocations: 370.9 kB / 0.5525 GB, free: 8.281 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006774/0.3288, allocations: 356.9 kB / 0.5528 GB, free: 8.059 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.3289, allocations: 55.12 kB / 0.5529 GB, free: 8.059 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003866/0.3293, allocations: 151.4 kB / 0.553 GB, free: 8.012 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002285/0.3295, allocations: 193.4 kB / 0.5532 GB, free: 7.871 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003871/0.3299, allocations: 308 kB / 0.5535 GB, free: 7.664 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.3311, allocations: 0.7858 MB / 0.5543 GB, free: 7.113 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3311, allocations: 3.938 kB / 0.5543 GB, free: 7.109 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3311, allocations: 0 / 0.5543 GB, free: 7.109 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.49e-05/0.3311, allocations: 0 / 0.5543 GB, free: 7.109 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.001906/0.333, allocations: 0.8677 MB / 0.5551 GB, free: 6.426 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.3331, allocations: 12.77 kB / 0.5551 GB, free: 6.422 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001184/0.3332, allocations: 90.17 kB / 0.5552 GB, free: 6.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.3333, allocations: 66.52 kB / 0.5553 GB, free: 6.305 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.3344, allocations: 475.7 kB / 0.5557 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.13e-05/0.3344, allocations: 34.28 kB / 0.5558 GB, free: 5.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.3345, allocations: 40.88 kB / 0.5558 GB, free: 5.902 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008706/0.3354, allocations: 0.5187 MB / 0.5563 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.3354, allocations: 2.438 kB / 0.5563 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.449e-05/0.3355, allocations: 16.25 kB / 0.5563 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.151e-05/0.3355, allocations: 15.09 kB / 0.5563 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005709/0.3361, allocations: 339.1 kB / 0.5567 GB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002785/0.3389, allocations: 2.001 MB / 0.5586 GB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004595/0.3393, allocations: 219.7 kB / 0.5588 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.3395, allocations: 74.69 kB / 0.5589 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.3395, allocations: 7.938 kB / 0.5589 GB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002791/0.3398, allocations: 165.9 kB / 0.5591 GB, free: 2.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.3398, allocations: 0 / 0.5591 GB, free: 2.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001759/0.3415, allocations: 0.8706 MB / 0.5599 GB, free: 1.844 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/0.3416, allocations: 132.5 kB / 0.56 GB, free: 1.684 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005392/0.3422, allocations: 445.8 kB / 0.5605 GB, free: 1.246 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.3422, allocations: 33.7 kB / 0.5605 GB, free: 1.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002448/0.3425, allocations: 308.4 kB / 0.5608 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.335e-05/0.3425, allocations: 95.16 kB / 0.5609 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.3427, allocations: 78.08 kB / 0.561 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.3429, allocations: 362.7 kB / 0.5613 GB, free: 368 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.343, allocations: 80.84 kB / 0.5614 GB, free: 288 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003034/0.3433, allocations: 233.4 kB / 0.5616 GB, free: 15.99 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004504/0.3438, allocations: 313 kB / 0.5619 GB, free: 15.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3438, allocations: 0 / 0.5619 GB, free: 15.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008954/0.3447, allocations: 449.5 kB / 0.5623 GB, free: 15.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3447, allocations: 4 kB / 0.5623 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3447, allocations: 4.562 kB / 0.5623 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004214/0.3451, allocations: 104.8 kB / 0.5624 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.3454, allocations: 71.84 kB / 0.5625 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/0.3477, allocations: 1.729 MB / 0.5642 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.348, allocations: 15.95 kB / 0.5642 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.348, allocations: 23.98 kB / 0.5642 GB, free: 13.11 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.0002936/0.3483, allocations: 205.7 kB / 0.5644 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.822e-05/0.3484, allocations: 47.66 kB / 0.5645 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006064/0.349, allocations: 290.2 kB / 0.5647 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.349, allocations: 0 / 0.5647 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.349, allocations: 4 kB / 0.5648 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.349, allocations: 0 / 0.5648 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/0.3503, allocations: 0.7511 MB / 0.5655 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.3503, allocations: 7.938 kB / 0.5655 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002708/0.3506, allocations: 43.98 kB / 0.5655 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002219/0.3508, allocations: 52.8 kB / 0.5656 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/0.3508, allocations: 8 kB / 0.5656 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/0.3523, allocations: 1.436 MB / 0.567 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.3523, allocations: 4 kB / 0.567 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008521/0.3532, allocations: 485.5 kB / 0.5675 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001795/0.3534, allocations: 59.69 kB / 0.5675 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.963e-05/0.3534, allocations: 8 kB / 0.5675 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.3537, allocations: 12 kB / 0.5675 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.485e-05/0.3537, allocations: 31.83 kB / 0.5676 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.3537, allocations: 4 kB / 0.5676 GB, free: 9.469 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003977/0.3541, allocations: 311.1 kB / 0.5679 GB, free: 9.164 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3541, allocations: 0 / 0.5679 GB, free: 9.164 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000603/0.3547, allocations: 127.9 kB / 0.568 GB, free: 9.039 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.002574/0.3573, allocations: 1.355 MB / 0.5693 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009085/0.3582, allocations: 398.5 kB / 0.5697 GB, free: 7.414 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3582, allocations: 0 / 0.5697 GB, free: 7.414 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004001/0.3586, allocations: 226.6 kB / 0.5699 GB, free: 7.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000847/0.3595, allocations: 135.8 kB / 0.57 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006636/0.3661, allocations: 4.295 MB / 0.5742 GB, free: 2.547 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005813/0.3667, allocations: 0.8738 MB / 0.5751 GB, free: 1.645 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003022/0.367, allocations: 72.17 kB / 0.5752 GB, free: 1.574 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002561/0.3673, allocations: 175.4 kB / 0.5753 GB, free: 1.402 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3673, allocations: 3.938 kB / 0.5753 GB, free: 1.398 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04942/0.4167, allocations: 12.39 MB / 0.5874 GB, free: 5.105 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/13.77, allocations: 4.062 kB / 0.5874 GB, free: 5.102 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.80766463400505] Failed to read output from testmodel.py, exit status != 0: 13.95501740900363 13.97939595 13.643492521 Calling exit ...