Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.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.001237/0.001237, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001444/0.001444, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8993/0.8993, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2151/0.2151, allocations: 29.4 MB / 290.1 MB, free: 2.465 MB / 266.7 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.ASM,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.092e-05/2.229e-05, allocations: 8.609 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.006619/0.006642, allocations: 7.049 MB / 437.3 MB, free: 6.508 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.006094/0.01274, allocations: 4.985 MB / 442.3 MB, free: 1.504 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006865/0.01342, allocations: 39.75 kB / 442.3 MB, free: 1.465 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.18/0.1934, allocations: 6.552 MB / 448.8 MB, free: 43.52 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001608/0.195, allocations: 0.766 MB / 449.6 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00098/0.196, allocations: 0.5482 MB / 450.2 MB, free: 43.48 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002005/0.198, allocations: 2.788 MB / 452.9 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008012/0.1988, allocations: 1.135 MB / 454.1 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008041/0.1996, allocations: 1.066 MB / 455.1 MB, free: 42.74 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006256/0.2002, allocations: 0.8923 MB / 456 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.2003, allocations: 146 kB / 456.2 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006936/0.201, allocations: 0.7076 MB / 456.9 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000307/0.2013, allocations: 0.6924 MB / 457.6 MB, free: 42.19 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003176/0.2017, allocations: 0.5248 MB / 458.1 MB, free: 41.97 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001309/0.203, allocations: 2.372 MB / 460.5 MB, free: 41.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.203, allocations: 0 / 460.5 MB, free: 41.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.203, allocations: 0 / 460.5 MB, free: 41.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.203, allocations: 1.5 kB / 460.5 MB, free: 41.25 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.002126/0.2051, allocations: 1.925 MB / 462.4 MB, free: 40.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.2052, allocations: 14.3 kB / 462.4 MB, free: 40.11 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.2053, allocations: 172.2 kB / 462.6 MB, free: 40 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004767/0.2058, allocations: 222.7 kB / 462.8 MB, free: 39.92 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.2068, allocations: 0.9764 MB / 463.8 MB, free: 39.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.207, allocations: 343.4 kB / 464.1 MB, free: 39.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.2071, allocations: 111.5 kB / 464.2 MB, free: 39.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.2088, allocations: 1.893 MB / 466.1 MB, free: 38.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/0.2089, allocations: 7.891 kB / 466.1 MB, free: 38.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.702e-05/0.2089, allocations: 40.88 kB / 466.2 MB, free: 38.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001505/0.2091, allocations: 128.1 kB / 466.3 MB, free: 38.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.2106, allocations: 1.597 MB / 467.9 MB, free: 37.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004374/0.215, allocations: 5.366 MB / 473.3 MB, free: 34.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.2163, allocations: 1.035 MB / 474.3 MB, free: 34.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007485/0.217, allocations: 0.6785 MB / 475 MB, free: 34.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.089e-05/0.2171, allocations: 20.69 kB / 475 MB, free: 34.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009857/0.2181, allocations: 0.9782 MB / 476 MB, free: 33.76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=116): time 2.554e-06/0.2181, allocations: 4 kB / 476 MB, free: 33.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=119): time 0.005966/0.224, allocations: 4.307 MB / 480.3 MB, free: 32.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.2241, allocations: 134.2 kB / 480.4 MB, free: 31.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008013/0.2249, allocations: 0.8075 MB / 481.2 MB, free: 31.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.621e-05/0.225, allocations: 60.27 kB / 481.3 MB, free: 31.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002992/0.2253, allocations: 0.5184 MB / 481.8 MB, free: 31.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002186/0.2255, allocations: 421.9 kB / 482.2 MB, free: 30.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002923/0.2258, allocations: 246.8 kB / 482.4 MB, free: 30.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.58e-05/0.2259, allocations: 367.6 kB / 482.8 MB, free: 30.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008466/0.2267, allocations: 0.7351 MB / 483.5 MB, free: 30.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008953/0.2276, allocations: 1.043 MB / 484.6 MB, free: 29.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.2291, allocations: 1.674 MB / 486.3 MB, free: 28.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.2291, allocations: 2.906 kB / 486.3 MB, free: 28.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002736/0.2319, allocations: 2.28 MB / 488.5 MB, free: 27.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.362e-05/0.232, allocations: 62.09 kB / 488.6 MB, free: 27.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/0.232, allocations: 8.531 kB / 488.6 MB, free: 27.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008402/0.2328, allocations: 407.7 kB / 489 MB, free: 27.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005217/0.2333, allocations: 216.9 kB / 489.2 MB, free: 27.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004877/0.2382, allocations: 5.973 MB / 495.2 MB, free: 23.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000771/0.239, allocations: 99.03 kB / 495.3 MB, free: 23.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/0.2391, allocations: 91.8 kB / 495.4 MB, free: 23.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 1 * 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 {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0006169/0.2397, allocations: 452.2 kB / 495.8 MB, free: 23.27 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.2399, allocations: 112.4 kB / 495.9 MB, free: 23.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002469/0.2424, allocations: 1.802 MB / 497.7 MB, free: 22.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/0.2424, allocations: 34.48 kB / 497.8 MB, free: 22.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2424, allocations: 3.891 kB / 497.8 MB, free: 22.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.2424, allocations: 5.016 kB / 497.8 MB, free: 22.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003915/0.2463, allocations: 3.118 MB / 0.4892 GB, free: 21.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.2463, allocations: 1.844 kB / 0.4892 GB, free: 21.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000499/0.2468, allocations: 169 kB / 0.4893 GB, free: 21.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003098/0.2471, allocations: 161.6 kB / 0.4895 GB, free: 21.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.784e-05/0.2472, allocations: 40.44 kB / 0.4895 GB, free: 21.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001882/0.2491, allocations: 4.469 MB / 0.4939 GB, free: 17.22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2491, allocations: 1.375 kB / 0.4939 GB, free: 17.22 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003161/0.2522, allocations: 2.743 MB / 0.4966 GB, free: 16.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003691/0.2526, allocations: 237.8 kB / 0.4968 GB, free: 16.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001366/0.2528, allocations: 87.38 kB / 0.4969 GB, free: 16.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004528/0.2532, allocations: 111.1 kB / 0.497 GB, free: 16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.2534, allocations: 87.42 kB / 0.4971 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.785e-05/0.2534, allocations: 39.53 kB / 0.4971 GB, free: 15.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004855/0.2539, allocations: 0.5468 MB / 0.4976 GB, free: 15.74 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2539, allocations: 0 / 0.4976 GB, free: 15.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001035/0.2549, allocations: 375.9 kB / 0.498 GB, free: 15.69 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.003769/0.2587, allocations: 3.793 MB / 0.5017 GB, free: 13.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002412/0.2611, allocations: 2.166 MB / 0.5038 GB, free: 11.17 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2611, allocations: 0 / 0.5038 GB, free: 11.17 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.2622, allocations: 1.167 MB / 0.5049 GB, free: 9.988 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008181/0.263, allocations: 243.1 kB / 0.5052 GB, free: 9.758 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/0.2758, allocations: 12.87 MB / 0.5177 GB, free: 12.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008736/0.2767, allocations: 0.6905 MB / 0.5184 GB, free: 11.88 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006035/0.2773, allocations: 300.5 kB / 0.5187 GB, free: 11.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000475/0.2778, allocations: 444.3 kB / 0.5191 GB, free: 11.15 MB / 426.7 MB Notification: Performance of SimCode: time 1.403e-06/0.2778, allocations: 4 kB / 0.5191 GB, free: 11.14 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0461/0.3239, allocations: 31.99 MB / 0.5504 GB, free: 11.41 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.627/8.951, allocations: 0 / 0.5504 GB, free: 11.41 MB / 458.7 MB " [Timeout remaining time 651] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.117394481785595] Failed to read output from testmodel.py, exit status != 0: 9.0681206099689 9.078802793 8.873577456 Calling exit ...