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.001614/0.001614, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001913/0.001913, allocations: 210.9 kB / 24.51 MB, free: 3.945 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.571/1.571, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.2278/0.2278, allocations: 38.54 MB / 353.2 MB, free: 12.33 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="cs",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.002001/0.002001, allocations: 59.91 kB / 493.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3456, allocations: 62.46 MB / 0.5427 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01042/0.3561, allocations: 6.777 MB / 0.5493 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009379/0.3654, allocations: 4.848 MB / 0.5541 GB, free: 7.406 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008827/0.3663, allocations: 39.44 kB / 0.5541 GB, free: 7.387 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01387/0.3802, allocations: 6.55 MB / 0.5605 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002319/0.3825, allocations: 0.5636 MB / 0.561 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001591/0.3841, allocations: 0.5107 MB / 0.5615 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004317/0.3884, allocations: 2.386 MB / 0.5639 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001522/0.3899, allocations: 0.8687 MB / 0.5647 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00149/0.3914, allocations: 0.6228 MB / 0.5653 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001519/0.393, allocations: 0.7786 MB / 0.5661 GB, free: 12.29 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002281/0.3932, allocations: 104 kB / 0.5662 GB, free: 12.19 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009836/0.3942, allocations: 311.7 kB / 0.5665 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006833/0.3948, allocations: 0.4986 MB / 0.567 GB, free: 11.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006881/0.3955, allocations: 481.8 kB / 0.5674 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002805/0.3983, allocations: 1.623 MB / 0.569 GB, free: 9.281 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.032e-05/0.3984, allocations: 0 / 0.569 GB, free: 9.281 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.997e-06/0.3984, allocations: 0 / 0.569 GB, free: 9.281 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.904e-05/0.3984, allocations: 0 / 0.569 GB, free: 9.281 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.004021/0.4024, allocations: 1.442 MB / 0.5704 GB, free: 7.801 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.4025, allocations: 19.92 kB / 0.5704 GB, free: 7.781 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.652e-05/0.4025, allocations: 22.19 kB / 0.5705 GB, free: 7.762 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001869/0.4027, allocations: 139.6 kB / 0.5706 GB, free: 7.617 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008289/0.4035, allocations: 180.1 kB / 0.5708 GB, free: 7.441 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001987/0.4055, allocations: 0.8492 MB / 0.5716 GB, free: 6.559 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.79e-05/0.4056, allocations: 61.98 kB / 0.5717 GB, free: 6.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/0.4058, allocations: 91.95 kB / 0.5717 GB, free: 6.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00217/0.408, allocations: 1.26 MB / 0.573 GB, free: 5.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.584e-05/0.408, allocations: 4 kB / 0.573 GB, free: 5.066 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.906e-05/0.4081, allocations: 39.97 kB / 0.573 GB, free: 5.027 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002558/0.4083, allocations: 85.89 kB / 0.5731 GB, free: 4.945 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.4102, allocations: 1.003 MB / 0.5741 GB, free: 3.938 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007306/0.4175, allocations: 4.521 MB / 0.5785 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.4185, allocations: 0.5386 MB / 0.579 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005942/0.4191, allocations: 327.1 kB / 0.5793 GB, free: 14.35 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.463e-05/0.4192, allocations: 8.5 kB / 0.5793 GB, free: 14.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007274/0.4199, allocations: 452.7 kB / 0.5798 GB, free: 13.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=62): time 2.575e-06/0.4199, allocations: 3.938 kB / 0.5798 GB, free: 13.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=65): time 0.005024/0.4249, allocations: 2.372 MB / 0.5821 GB, free: 11.46 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.977e-05/0.425, allocations: 111.5 kB / 0.5822 GB, free: 11.33 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.4261, allocations: 0.7586 MB / 0.5829 GB, free: 10.56 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.076e-05/0.4262, allocations: 41.7 kB / 0.583 GB, free: 10.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004349/0.4266, allocations: 0.5077 MB / 0.5835 GB, free: 10 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002611/0.4269, allocations: 253.9 kB / 0.5837 GB, free: 9.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003137/0.4272, allocations: 178.5 kB / 0.5839 GB, free: 9.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002459/0.4274, allocations: 402.7 kB / 0.5843 GB, free: 9.168 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006474/0.4281, allocations: 369.8 kB / 0.5846 GB, free: 8.805 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008934/0.429, allocations: 0.6829 MB / 0.5853 GB, free: 7.988 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/0.4306, allocations: 1.057 MB / 0.5863 GB, free: 6.809 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/0.4306, allocations: 4 kB / 0.5863 GB, free: 6.805 MB / 430.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003399/0.434, allocations: 1.54 MB / 0.5878 GB, free: 5.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.434, allocations: 8 kB / 0.5878 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.78e-05/0.4341, allocations: 8 kB / 0.5878 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001629/0.4357, allocations: 490.1 kB / 0.5883 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007057/0.4364, allocations: 167.7 kB / 0.5885 GB, free: 4.586 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.4471, allocations: 6.815 MB / 0.5951 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009864/0.4481, allocations: 48.11 kB / 0.5952 GB, free: 13.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.4482, allocations: 51.98 kB / 0.5952 GB, free: 13.44 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.0006082/0.4488, allocations: 353.4 kB / 0.5956 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.449, allocations: 91.44 kB / 0.5956 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001981/0.4509, allocations: 0.9615 MB / 0.5966 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.4509, allocations: 8 kB / 0.5966 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.451, allocations: 0 / 0.5966 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.451, allocations: 3.984 kB / 0.5966 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003739/0.4547, allocations: 1.857 MB / 0.5984 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.4547, allocations: 3.984 kB / 0.5984 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007839/0.4555, allocations: 131.9 kB / 0.5985 GB, free: 9.945 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005691/0.4561, allocations: 158.3 kB / 0.5987 GB, free: 9.781 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.76e-05/0.4561, allocations: 23.92 kB / 0.5987 GB, free: 9.758 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004773/0.4609, allocations: 4.483 MB / 0.6031 GB, free: 4.934 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.4609, allocations: 4.031 kB / 0.6031 GB, free: 4.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.4636, allocations: 1.387 MB / 0.6044 GB, free: 3.504 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004392/0.4641, allocations: 135.6 kB / 0.6046 GB, free: 3.371 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.4642, allocations: 19.98 kB / 0.6046 GB, free: 3.352 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004727/0.4647, allocations: 31.97 kB / 0.6046 GB, free: 3.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.4649, allocations: 60.27 kB / 0.6047 GB, free: 3.262 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.803e-05/0.4649, allocations: 23.98 kB / 0.6047 GB, free: 3.238 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008563/0.4658, allocations: 0.5302 MB / 0.6052 GB, free: 2.711 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4658, allocations: 0 / 0.6052 GB, free: 2.711 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001137/0.4669, allocations: 275.9 kB / 0.6055 GB, free: 2.441 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.005432/0.4724, allocations: 2.337 MB / 0.6078 GB, free: 244 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00436/0.4767, allocations: 1.271 MB / 0.609 GB, free: 14.94 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.4767, allocations: 1.438 kB / 0.609 GB, free: 14.94 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001787/0.4785, allocations: 0.7725 MB / 0.6098 GB, free: 14.13 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.4798, allocations: 216.5 kB / 0.61 GB, free: 13.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01686/0.4967, allocations: 9.721 MB / 0.6195 GB, free: 3.809 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006833/0.4974, allocations: 0.5529 MB / 0.62 GB, free: 3.223 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007081/0.4981, allocations: 235.2 kB / 0.6202 GB, free: 2.988 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000543/0.4986, allocations: 363.3 kB / 0.6206 GB, free: 2.633 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4986, allocations: 0 / 0.6206 GB, free: 2.633 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06795/0.5666, allocations: 25.26 MB / 0.6453 GB, free: 9.582 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.32/18.89, allocations: 13.8 kB / 0.6453 GB, free: 9.578 MB / 494.1 MB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --stepSize=0.05 --timeout=50 --tolerance=1e-06 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: 22.27181601396296] Failed to read output from testmodel.py, exit status != 0: 19.131875150022097 19.148066046 18.746332631 Calling exit ...