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.001907/0.001907, allocations: 111.1 kB / 20.44 MB, free: 1.059 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.002385/0.002385, allocations: 211.6 kB / 23.73 MB, free: 4.16 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: 7.809 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.1885/0.1885, allocations: 38.56 MB / 352.5 MB, free: 12.34 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.002271/0.002271, allocations: 67.89 kB / 492.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2971, allocations: 62.46 MB / 0.5419 GB, free: 260 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.007268/0.3043, allocations: 5.07 MB / 0.5469 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005812/0.3102, allocations: 3.64 MB / 0.5504 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000263/0.3104, allocations: 22.44 kB / 0.5505 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01026/0.3207, allocations: 5.322 MB / 0.5557 GB, free: 6.207 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008497/0.3215, allocations: 338.4 kB / 0.556 GB, free: 5.875 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005173/0.322, allocations: 215.6 kB / 0.5562 GB, free: 5.664 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002196/0.3242, allocations: 1.625 MB / 0.5578 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007574/0.325, allocations: 0.5261 MB / 0.5583 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005395/0.3255, allocations: 386.6 kB / 0.5587 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006322/0.3262, allocations: 422.3 kB / 0.5591 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.044e-05/0.3263, allocations: 56 kB / 0.5591 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.3264, allocations: 64 kB / 0.5592 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002681/0.3267, allocations: 255.3 kB / 0.5594 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003086/0.327, allocations: 262.8 kB / 0.5597 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009392/0.3279, allocations: 0.8172 MB / 0.5605 GB, free: 1.258 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3279, allocations: 0 / 0.5605 GB, free: 1.258 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3279, allocations: 4 kB / 0.5605 GB, free: 1.254 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.328, allocations: 0 / 0.5605 GB, free: 1.254 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.001577/0.3295, allocations: 0.8084 MB / 0.5613 GB, free: 428 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.3296, allocations: 11.98 kB / 0.5613 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.3297, allocations: 94.69 kB / 0.5614 GB, free: 312 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002615/0.3299, allocations: 76.5 kB / 0.5614 GB, free: 236 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.331, allocations: 0.4952 MB / 0.5619 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.3311, allocations: 29 kB / 0.5619 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.645e-05/0.3311, allocations: 44 kB / 0.562 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.3322, allocations: 0.6336 MB / 0.5626 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.886e-05/0.3322, allocations: 11.92 kB / 0.5626 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.51e-05/0.3323, allocations: 16 kB / 0.5626 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.3324, allocations: 44.97 kB / 0.5627 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007697/0.3332, allocations: 463.6 kB / 0.5631 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003263/0.3364, allocations: 2.318 MB / 0.5654 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004667/0.3369, allocations: 265.1 kB / 0.5656 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.3371, allocations: 129.7 kB / 0.5658 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.3371, allocations: 4 kB / 0.5658 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.3372, allocations: 38.5 kB / 0.5658 GB, free: 11.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 1.793e-06/0.3372, allocations: 0 / 0.5658 GB, free: 11.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002853/0.34, allocations: 1.243 MB / 0.567 GB, free: 10.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.3401, allocations: 85.05 kB / 0.5671 GB, free: 10.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004849/0.3406, allocations: 425.7 kB / 0.5675 GB, free: 9.719 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/0.3406, allocations: 29.7 kB / 0.5675 GB, free: 9.684 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002379/0.3408, allocations: 312.2 kB / 0.5678 GB, free: 9.375 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.3409, allocations: 111 kB / 0.5679 GB, free: 9.266 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.3411, allocations: 90.02 kB / 0.568 GB, free: 9.172 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.3413, allocations: 362.7 kB / 0.5684 GB, free: 8.809 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.3415, allocations: 132.8 kB / 0.5685 GB, free: 8.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003631/0.3419, allocations: 274.3 kB / 0.5687 GB, free: 8.344 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006394/0.3425, allocations: 453.9 kB / 0.5692 GB, free: 7.836 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3425, allocations: 0 / 0.5692 GB, free: 7.836 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001108/0.3436, allocations: 0.608 MB / 0.5698 GB, free: 7.215 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3436, allocations: 4 kB / 0.5698 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.3436, allocations: 11.94 kB / 0.5698 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004389/0.3441, allocations: 145.5 kB / 0.5699 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003004/0.3444, allocations: 71.91 kB / 0.57 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003732/0.3481, allocations: 3.45 MB / 0.5734 GB, free: 3.297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.3484, allocations: 19.98 kB / 0.5734 GB, free: 3.277 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-05/0.3484, allocations: 16 kB / 0.5734 GB, free: 3.262 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.0003208/0.3488, allocations: 233.7 kB / 0.5736 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.914e-05/0.3488, allocations: 47.66 kB / 0.5737 GB, free: 2.977 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00099/0.3498, allocations: 0.5 MB / 0.5742 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.3498, allocations: 7.984 kB / 0.5742 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007557/0.3506, allocations: 405.2 kB / 0.5746 GB, free: 2.043 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.3506, allocations: 0 / 0.5746 GB, free: 2.043 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/0.3522, allocations: 0.9272 MB / 0.5755 GB, free: 1.055 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.3522, allocations: 3.938 kB / 0.5755 GB, free: 1.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.3524, allocations: 43.98 kB / 0.5755 GB, free: 1.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002795/0.3527, allocations: 84.78 kB / 0.5756 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/0.3527, allocations: 16.08 kB / 0.5756 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002211/0.3549, allocations: 1.905 MB / 0.5775 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3549, allocations: 3.938 kB / 0.5775 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.3559, allocations: 0.6475 MB / 0.5781 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002118/0.3561, allocations: 67.67 kB / 0.5782 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.22e-05/0.3562, allocations: 8 kB / 0.5782 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.3564, allocations: 8 kB / 0.5782 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.001e-05/0.3564, allocations: 27.89 kB / 0.5782 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.3565, allocations: 8 kB / 0.5782 GB, free: 14.09 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003636/0.3568, allocations: 299.1 kB / 0.5785 GB, free: 13.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3568, allocations: 8.062 kB / 0.5785 GB, free: 13.79 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005376/0.3574, allocations: 127.9 kB / 0.5786 GB, free: 13.67 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.001316/0.3587, allocations: 1.185 MB / 0.5798 GB, free: 12.44 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.3597, allocations: 0.5995 MB / 0.5804 GB, free: 11.81 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3597, allocations: 0 / 0.5804 GB, free: 11.81 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004685/0.3602, allocations: 291.3 kB / 0.5806 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006187/0.3608, allocations: 120.1 kB / 0.5808 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006564/0.3674, allocations: 4.622 MB / 0.5853 GB, free: 6.547 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/0.3678, allocations: 327.6 kB / 0.5856 GB, free: 6.199 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002569/0.368, allocations: 72.33 kB / 0.5857 GB, free: 6.129 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/0.3683, allocations: 179.4 kB / 0.5858 GB, free: 5.953 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3683, allocations: 0 / 0.5858 GB, free: 5.953 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04743/0.4157, allocations: 11.41 MB / 0.597 GB, free: 10.76 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.07, allocations: 7.219 kB / 0.597 GB, free: 10.76 MB / 446.1 MB " [Timeout remaining time 648] (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.00697414809838] Failed to read output from testmodel.py, exit status != 0: 12.191807986237109 12.20800578 11.876867366 Calling exit ...