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.001801/0.001801, allocations: 114.8 kB / 18.49 MB, free: 4.559 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.002198/0.002198, allocations: 217.4 kB / 21.46 MB, free: 1.605 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.532/1.532, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.2093/0.2093, allocations: 38.51 MB / 349.4 MB, free: 2.609 MB / 270.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.002608/0.002608, allocations: 64.91 kB / 487.8 MB, free: 32.26 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1614, allocations: 62.43 MB / 0.5374 GB, free: 9.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01275/0.1742, allocations: 7.206 MB / 0.5444 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01233/0.1865, allocations: 5.293 MB / 0.5496 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.1876, allocations: 43.62 kB / 0.5496 GB, free: 12.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01601/0.2036, allocations: 5.758 MB / 0.5552 GB, free: 7.148 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002618/0.2062, allocations: 0.552 MB / 0.5558 GB, free: 6.594 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002121/0.2083, allocations: 0.4989 MB / 0.5563 GB, free: 6.094 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004269/0.2126, allocations: 2.269 MB / 0.5585 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.2138, allocations: 0.8182 MB / 0.5593 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.2148, allocations: 0.6267 MB / 0.5599 GB, free: 2.355 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001114/0.2159, allocations: 0.7785 MB / 0.5607 GB, free: 1.574 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001708/0.2161, allocations: 100 kB / 0.5608 GB, free: 1.477 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007194/0.2168, allocations: 319.7 kB / 0.5611 GB, free: 1.164 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000766/0.2176, allocations: 0.4948 MB / 0.5615 GB, free: 0.668 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009354/0.2185, allocations: 0.5909 MB / 0.5621 GB, free: 76 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00315/0.2217, allocations: 1.604 MB / 0.5637 GB, free: 14.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2217, allocations: 4 kB / 0.5637 GB, free: 14.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.2217, allocations: 0 / 0.5637 GB, free: 14.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.138e-05/0.2217, allocations: 0 / 0.5637 GB, free: 14.46 MB / 430.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.004985/0.2267, allocations: 1.517 MB / 0.5652 GB, free: 12.89 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.434e-05/0.2268, allocations: 12.03 kB / 0.5652 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.847e-05/0.2268, allocations: 26.12 kB / 0.5652 GB, free: 12.85 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002709/0.2271, allocations: 135.6 kB / 0.5653 GB, free: 12.71 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0014/0.2285, allocations: 184.1 kB / 0.5655 GB, free: 12.53 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003102/0.2316, allocations: 0.9175 MB / 0.5664 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-05/0.2317, allocations: 65.98 kB / 0.5665 GB, free: 11.51 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002624/0.232, allocations: 87.94 kB / 0.5666 GB, free: 11.42 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003159/0.2351, allocations: 1.231 MB / 0.5678 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.054e-05/0.2352, allocations: 7.922 kB / 0.5678 GB, free: 10.11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001494/0.2353, allocations: 39.92 kB / 0.5678 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004115/0.2357, allocations: 93.88 kB / 0.5679 GB, free: 9.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002397/0.2381, allocations: 1.007 MB / 0.5689 GB, free: 8.969 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008314/0.2464, allocations: 4.894 MB / 0.5737 GB, free: 3.859 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.2476, allocations: 0.6292 MB / 0.5743 GB, free: 3.195 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006222/0.2482, allocations: 331.2 kB / 0.5746 GB, free: 2.867 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.799e-05/0.2483, allocations: 12.55 kB / 0.5746 GB, free: 2.852 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007761/0.2491, allocations: 453.8 kB / 0.575 GB, free: 2.391 MB / 430.1 MB Notification: Performance of pre-optimization done (n=62): time 2.685e-06/0.2491, allocations: 0 / 0.575 GB, free: 2.391 MB / 430.1 MB Notification: Performance of matching and sorting (n=65): time 0.005837/0.2549, allocations: 2.744 MB / 0.5777 GB, free: 15.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.255, allocations: 115.3 kB / 0.5778 GB, free: 15.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.2563, allocations: 0.7586 MB / 0.5786 GB, free: 14.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.854e-05/0.2564, allocations: 45.64 kB / 0.5786 GB, free: 14.56 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004486/0.2569, allocations: 0.5116 MB / 0.5791 GB, free: 14.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/0.2572, allocations: 245.9 kB / 0.5793 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003241/0.2575, allocations: 190.5 kB / 0.5795 GB, free: 13.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002336/0.2577, allocations: 402.7 kB / 0.5799 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006676/0.2584, allocations: 369.8 kB / 0.5803 GB, free: 12.85 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009633/0.2594, allocations: 0.6539 MB / 0.5809 GB, free: 12.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.261, allocations: 1.057 MB / 0.5819 GB, free: 10.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.261, allocations: 4 kB / 0.5819 GB, free: 10.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003407/0.2644, allocations: 1.612 MB / 0.5835 GB, free: 9.242 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.2644, allocations: 8 kB / 0.5835 GB, free: 9.234 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/0.2644, allocations: 8 kB / 0.5835 GB, free: 9.227 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001688/0.2661, allocations: 493.9 kB / 0.584 GB, free: 8.738 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006617/0.2668, allocations: 163.7 kB / 0.5841 GB, free: 8.578 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/0.2778, allocations: 7.096 MB / 0.5911 GB, free: 1.195 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008338/0.2786, allocations: 51.98 kB / 0.5911 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.2788, allocations: 43.98 kB / 0.5912 GB, free: 1.102 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.0006441/0.2794, allocations: 352.2 kB / 0.5915 GB, free: 0.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.2796, allocations: 87.44 kB / 0.5916 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002311/0.2819, allocations: 1.114 MB / 0.5927 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.282, allocations: 8 kB / 0.5927 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.282, allocations: 4 kB / 0.5927 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.282, allocations: 7.922 kB / 0.5927 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004257/0.2862, allocations: 2.119 MB / 0.5948 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.2862, allocations: 128 / 0.5948 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007844/0.287, allocations: 127.8 kB / 0.5949 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005968/0.2876, allocations: 158.4 kB / 0.595 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.837e-05/0.2877, allocations: 27.92 kB / 0.5951 GB, free: 12.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00503/0.2927, allocations: 4.805 MB / 0.5998 GB, free: 7.695 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/0.2927, allocations: 4.031 kB / 0.5998 GB, free: 7.691 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00274/0.2955, allocations: 1.535 MB / 0.6013 GB, free: 6.082 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004339/0.2959, allocations: 216.5 kB / 0.6015 GB, free: 5.852 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002137/0.2961, allocations: 23.98 kB / 0.6015 GB, free: 5.828 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005627/0.2967, allocations: 27.98 kB / 0.6015 GB, free: 5.801 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.2969, allocations: 60.42 kB / 0.6016 GB, free: 5.742 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-05/0.2969, allocations: 23.98 kB / 0.6016 GB, free: 5.719 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009718/0.2979, allocations: 0.5224 MB / 0.6021 GB, free: 5.199 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2979, allocations: 0 / 0.6021 GB, free: 5.199 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001389/0.2993, allocations: 275.9 kB / 0.6024 GB, free: 4.93 MB / 462.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.004913/0.3042, allocations: 2.464 MB / 0.6048 GB, free: 2.547 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00307/0.3073, allocations: 1.276 MB / 0.606 GB, free: 1.246 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.3073, allocations: 4.188 kB / 0.606 GB, free: 1.242 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.3088, allocations: 0.761 MB / 0.6068 GB, free: 452 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.3101, allocations: 219.3 kB / 0.607 GB, free: 240 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2624/0.5725, allocations: 9.864 MB / 0.6166 GB, free: 61.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006817/0.5732, allocations: 1.151 MB / 0.6177 GB, free: 61.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006602/0.5738, allocations: 229.1 kB / 0.6179 GB, free: 61.07 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004303/0.5742, allocations: 363.8 kB / 0.6183 GB, free: 60.8 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5742, allocations: 0 / 0.6183 GB, free: 60.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08382/0.6581, allocations: 24.6 MB / 0.6423 GB, free: 46.51 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.1/17.76, allocations: 8 kB / 0.6423 GB, free: 46.5 MB / 462.1 MB " [Timeout remaining time 642] (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: 21.157145234989002] Failed to read output from testmodel.py, exit status != 0: 17.991206982987933 18.009622974 17.783934539 Calling exit ...