Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.001373/0.001373, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001512/0.001512, allocations: 208.1 kB / 23.73 MB, free: 4.379 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.461/1.461, 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 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.1736/0.1736, allocations: 38.56 MB / 352.5 MB, free: 12.31 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.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",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.001935/0.001935, allocations: 62.41 kB / 492.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.3, allocations: 62.47 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.007115/0.3072, allocations: 5.063 MB / 0.5469 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006018/0.3132, allocations: 3.643 MB / 0.5504 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002829/0.3135, allocations: 22.44 kB / 0.5505 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01078/0.3242, allocations: 5.383 MB / 0.5557 GB, free: 6.156 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009149/0.3252, allocations: 334.4 kB / 0.556 GB, free: 5.828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005269/0.3257, allocations: 219.6 kB / 0.5562 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002228/0.3279, allocations: 1.641 MB / 0.5579 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007348/0.3286, allocations: 0.53 MB / 0.5584 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004434/0.3291, allocations: 382.7 kB / 0.5587 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006456/0.3297, allocations: 450.3 kB / 0.5592 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.109e-05/0.3298, allocations: 56 kB / 0.5592 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001579/0.33, allocations: 64 kB / 0.5593 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000274/0.3302, allocations: 263.3 kB / 0.5595 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002994/0.3305, allocations: 250.9 kB / 0.5598 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009278/0.3315, allocations: 0.825 MB / 0.5606 GB, free: 1.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3315, allocations: 0 / 0.5606 GB, free: 1.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3315, allocations: 0 / 0.5606 GB, free: 1.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.3315, allocations: 0 / 0.5606 GB, free: 1.16 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001594/0.3331, allocations: 0.8143 MB / 0.5614 GB, free: 324 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3331, allocations: 15.98 kB / 0.5614 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001166/0.3332, allocations: 86.7 kB / 0.5615 GB, free: 212 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002687/0.3335, allocations: 76.5 kB / 0.5615 GB, free: 136 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.3345, allocations: 0.4914 MB / 0.562 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.574e-05/0.3346, allocations: 36.94 kB / 0.5621 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.884e-05/0.3346, allocations: 43.98 kB / 0.5621 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00096/0.3356, allocations: 0.6336 MB / 0.5627 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.3356, allocations: 3.938 kB / 0.5627 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.865e-05/0.3357, allocations: 19.98 kB / 0.5627 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001301/0.3358, allocations: 52.97 kB / 0.5628 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007672/0.3366, allocations: 459.6 kB / 0.5632 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003087/0.3397, allocations: 2.318 MB / 0.5655 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.3401, allocations: 253.2 kB / 0.5657 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002336/0.3403, allocations: 133.7 kB / 0.5659 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.3404, allocations: 4 kB / 0.5659 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.3404, allocations: 38.5 kB / 0.5659 GB, free: 11.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.3404, allocations: 0 / 0.5659 GB, free: 11.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002807/0.3432, allocations: 1.247 MB / 0.5671 GB, free: 10.15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.3433, allocations: 85.05 kB / 0.5672 GB, free: 10.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004825/0.3438, allocations: 429.7 kB / 0.5676 GB, free: 9.617 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.3438, allocations: 29.7 kB / 0.5676 GB, free: 9.582 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002363/0.344, allocations: 304.2 kB / 0.5679 GB, free: 9.281 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.3441, allocations: 119 kB / 0.568 GB, free: 9.164 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.3443, allocations: 86.08 kB / 0.5681 GB, free: 9.074 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.3445, allocations: 350.7 kB / 0.5685 GB, free: 8.723 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.3447, allocations: 132.8 kB / 0.5686 GB, free: 8.594 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.345, allocations: 279.6 kB / 0.5689 GB, free: 8.254 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006148/0.3456, allocations: 461.9 kB / 0.5693 GB, free: 7.738 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3456, allocations: 3.938 kB / 0.5693 GB, free: 7.734 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001099/0.3467, allocations: 0.5887 MB / 0.5699 GB, free: 7.133 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.3468, allocations: 8 kB / 0.5699 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.3468, allocations: 7.938 kB / 0.5699 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004359/0.3472, allocations: 149.5 kB / 0.57 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.3475, allocations: 71.91 kB / 0.5701 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003598/0.3511, allocations: 3.461 MB / 0.5735 GB, free: 3.199 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00024/0.3513, allocations: 11.98 kB / 0.5735 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.503e-05/0.3514, allocations: 24.12 kB / 0.5735 GB, free: 3.164 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * 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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003026/0.3517, allocations: 237.7 kB / 0.5737 GB, free: 2.922 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.938e-05/0.3517, allocations: 47.66 kB / 0.5738 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009806/0.3527, allocations: 0.4921 MB / 0.5743 GB, free: 2.371 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.3527, allocations: 8 kB / 0.5743 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007384/0.3535, allocations: 405.2 kB / 0.5747 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3535, allocations: 0 / 0.5747 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.355, allocations: 0.9382 MB / 0.5756 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.355, allocations: 0 / 0.5756 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001961/0.3552, allocations: 35.98 kB / 0.5756 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002727/0.3555, allocations: 88.78 kB / 0.5757 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.3555, allocations: 11.98 kB / 0.5757 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002159/0.3577, allocations: 1.905 MB / 0.5776 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3577, allocations: 0 / 0.5776 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009887/0.3586, allocations: 0.6598 MB / 0.5782 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.3588, allocations: 63.69 kB / 0.5783 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.825e-05/0.3588, allocations: 7.953 kB / 0.5783 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.359, allocations: 8 kB / 0.5783 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.3591, allocations: 23.89 kB / 0.5783 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.3591, allocations: 12 kB / 0.5783 GB, free: 13.99 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003575/0.3595, allocations: 303.1 kB / 0.5786 GB, free: 13.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3595, allocations: 0 / 0.5786 GB, free: 13.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004992/0.36, allocations: 123.9 kB / 0.5787 GB, free: 13.57 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * Number of discrete variables: 1 (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 {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001368/0.3613, allocations: 1.181 MB / 0.5799 GB, free: 12.35 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.3624, allocations: 0.5956 MB / 0.5805 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3624, allocations: 3.938 kB / 0.5805 GB, free: 11.72 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004963/0.3629, allocations: 290.4 kB / 0.5807 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006671/0.3635, allocations: 126.5 kB / 0.5809 GB, free: 11.31 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006833/0.3704, allocations: 4.628 MB / 0.5854 GB, free: 6.441 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.3708, allocations: 323.7 kB / 0.5857 GB, free: 6.098 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002343/0.371, allocations: 72.33 kB / 0.5858 GB, free: 6.027 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/0.3713, allocations: 183.4 kB / 0.5859 GB, free: 5.848 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3713, allocations: 0 / 0.5859 GB, free: 5.848 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04965/0.4209, allocations: 11.58 MB / 0.5972 GB, free: 10.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.7, allocations: 7.938 kB / 0.5972 GB, free: 10.48 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.807198012946174] Failed to read output from testmodel.py, exit status != 0: 12.827078104019165 12.860922348 12.52359939 Calling exit ...