Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.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.001603/0.001603, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001475/0.001475, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.1829/0.1829, allocations: 38.56 MB / 352.5 MB, free: 12.39 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.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",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.00217/0.00217, allocations: 75.91 kB / 492.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.313, allocations: 62.47 MB / 0.542 GB, free: 232 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.009797/0.3228, allocations: 6.78 MB / 0.5486 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009726/0.3325, allocations: 4.853 MB / 0.5533 GB, free: 7.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008339/0.3334, allocations: 40.22 kB / 0.5534 GB, free: 7.383 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01329/0.3467, allocations: 6.48 MB / 0.5597 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001919/0.3486, allocations: 0.5637 MB / 0.5602 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.3501, allocations: 0.4912 MB / 0.5607 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003634/0.3537, allocations: 2.389 MB / 0.563 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.3549, allocations: 0.8532 MB / 0.5639 GB, free: 13.71 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009989/0.3559, allocations: 0.6306 MB / 0.5645 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.357, allocations: 0.7473 MB / 0.5652 GB, free: 12.33 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.3571, allocations: 100 kB / 0.5653 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006914/0.3578, allocations: 307.7 kB / 0.5656 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005079/0.3583, allocations: 0.4948 MB / 0.5661 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005337/0.3589, allocations: 485.8 kB / 0.5666 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00185/0.3607, allocations: 1.615 MB / 0.5681 GB, free: 9.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3607, allocations: 4 kB / 0.5681 GB, free: 9.336 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3607, allocations: 4 kB / 0.5681 GB, free: 9.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.3608, allocations: 3.938 kB / 0.5681 GB, free: 9.328 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002996/0.3637, allocations: 1.436 MB / 0.5695 GB, free: 7.855 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.3638, allocations: 15.98 kB / 0.5696 GB, free: 7.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001796/0.364, allocations: 135.6 kB / 0.5697 GB, free: 7.699 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007892/0.3648, allocations: 188.1 kB / 0.5699 GB, free: 7.516 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00191/0.3667, allocations: 0.8416 MB / 0.5707 GB, free: 6.645 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.311e-05/0.3667, allocations: 69.92 kB / 0.5708 GB, free: 6.574 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/0.3669, allocations: 87.95 kB / 0.5708 GB, free: 6.488 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/0.3688, allocations: 1.26 MB / 0.5721 GB, free: 5.152 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.132e-05/0.3689, allocations: 3.938 kB / 0.5721 GB, free: 5.148 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.309e-05/0.369, allocations: 35.98 kB / 0.5721 GB, free: 5.113 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002381/0.3692, allocations: 93.88 kB / 0.5722 GB, free: 5.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001673/0.3709, allocations: 0.9992 MB / 0.5732 GB, free: 4.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007217/0.3781, allocations: 4.514 MB / 0.5776 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3792, allocations: 0.5462 MB / 0.5781 GB, free: 14.75 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000572/0.3797, allocations: 327.1 kB / 0.5784 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.41e-05/0.3798, allocations: 8.5 kB / 0.5784 GB, free: 14.42 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007263/0.3805, allocations: 452.8 kB / 0.5789 GB, free: 13.96 MB / 430.1 MB Notification: Performance of pre-optimization done (n=62): time 2.525e-06/0.3805, allocations: 0 / 0.5789 GB, free: 13.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=65): time 0.004949/0.3855, allocations: 2.379 MB / 0.5812 GB, free: 11.54 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.132e-05/0.3855, allocations: 115.4 kB / 0.5813 GB, free: 11.4 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.3866, allocations: 0.7779 MB / 0.5821 GB, free: 10.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.993e-05/0.3867, allocations: 41.7 kB / 0.5821 GB, free: 10.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004466/0.3871, allocations: 0.5039 MB / 0.5826 GB, free: 10.06 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002712/0.3874, allocations: 253.9 kB / 0.5828 GB, free: 9.809 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002967/0.3877, allocations: 178.5 kB / 0.583 GB, free: 9.629 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002564/0.388, allocations: 402.7 kB / 0.5834 GB, free: 9.227 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006348/0.3886, allocations: 377.8 kB / 0.5838 GB, free: 8.855 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008821/0.3895, allocations: 0.679 MB / 0.5844 GB, free: 8.047 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001562/0.391, allocations: 1.053 MB / 0.5854 GB, free: 6.871 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.391, allocations: 8 kB / 0.5855 GB, free: 6.863 MB / 430.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003286/0.3943, allocations: 1.528 MB / 0.5869 GB, free: 5.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.3944, allocations: 11.98 kB / 0.587 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.3944, allocations: 12 kB / 0.587 GB, free: 5.297 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001614/0.396, allocations: 490.2 kB / 0.5874 GB, free: 4.812 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006909/0.3967, allocations: 179.7 kB / 0.5876 GB, free: 4.637 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/0.4072, allocations: 6.804 MB / 0.5943 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007639/0.4079, allocations: 48.16 kB / 0.5943 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.533e-05/0.408, allocations: 48 kB / 0.5943 GB, free: 13.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0005442/0.4086, allocations: 353.5 kB / 0.5947 GB, free: 13.15 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.4087, allocations: 91.39 kB / 0.5948 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.4107, allocations: 0.9693 MB / 0.5957 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.4107, allocations: 11.98 kB / 0.5957 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4107, allocations: 0 / 0.5957 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.4107, allocations: 3.984 kB / 0.5957 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.4144, allocations: 1.861 MB / 0.5975 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.4144, allocations: 0 / 0.5975 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007527/0.4151, allocations: 127.8 kB / 0.5977 GB, free: 10 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000571/0.4157, allocations: 154.4 kB / 0.5978 GB, free: 9.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.203e-05/0.4158, allocations: 20.11 kB / 0.5978 GB, free: 9.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004483/0.4202, allocations: 4.49 MB / 0.6022 GB, free: 4.988 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4202, allocations: 0 / 0.6022 GB, free: 4.988 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002462/0.4227, allocations: 1.387 MB / 0.6036 GB, free: 3.562 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004094/0.4231, allocations: 143.4 kB / 0.6037 GB, free: 3.422 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.4232, allocations: 24.05 kB / 0.6037 GB, free: 3.398 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004681/0.4237, allocations: 23.98 kB / 0.6038 GB, free: 3.375 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.4239, allocations: 60.33 kB / 0.6038 GB, free: 3.316 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.428e-05/0.4239, allocations: 23.98 kB / 0.6038 GB, free: 3.293 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007643/0.4247, allocations: 0.5146 MB / 0.6043 GB, free: 2.785 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4247, allocations: 4 kB / 0.6043 GB, free: 2.781 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001028/0.4257, allocations: 279.9 kB / 0.6046 GB, free: 2.508 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],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 (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 3 systems {(1,3,100.0%), (2,1,100.0%), (2,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.004311/0.43, allocations: 2.329 MB / 0.6069 GB, free: 324 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002634/0.4326, allocations: 1.288 MB / 0.6081 GB, free: 15 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4326, allocations: 3.938 kB / 0.6081 GB, free: 15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001366/0.434, allocations: 0.7651 MB / 0.6089 GB, free: 14.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.4351, allocations: 205.8 kB / 0.6091 GB, free: 13.99 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/0.4507, allocations: 9.721 MB / 0.6186 GB, free: 3.871 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006746/0.4513, allocations: 0.5452 MB / 0.6191 GB, free: 3.293 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006978/0.452, allocations: 231.3 kB / 0.6193 GB, free: 3.062 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005192/0.4526, allocations: 359.3 kB / 0.6197 GB, free: 2.711 MB / 462.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4526, allocations: 4 kB / 0.6197 GB, free: 2.707 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07008/0.5226, allocations: 25.35 MB / 0.6444 GB, free: 9.551 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.87/14.39, allocations: 6.75 kB / 0.6444 GB, free: 9.547 MB / 494.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.486259651836008] Failed to read output from testmodel.py, exit status != 0: 14.587634705007076 14.61845041 14.251906112 Calling exit ...