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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 104.3 kB / 16.92 MB, free: 5.793 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 191.3 kB / 17.85 MB, free: 5.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1714/0.1714, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 56.97 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1022, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008651/0.1109, allocations: 7.111 MB / 464.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00763/0.1186, allocations: 5.083 MB / 469.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006702/0.1193, allocations: 27.88 kB / 469.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01036/0.1296, allocations: 5.704 MB / 474.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001988/0.1317, allocations: 0.516 MB / 475.4 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001551/0.1332, allocations: 498.9 kB / 475.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00317/0.1364, allocations: 2.253 MB / 478.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00116/0.1376, allocations: 0.9313 MB / 479.1 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009587/0.1386, allocations: 0.6033 MB / 479.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001009/0.1396, allocations: 0.7162 MB / 480.4 MB, free: 452 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.1398, allocations: 100 kB / 480.5 MB, free: 352 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006513/0.1404, allocations: 255.7 kB / 480.8 MB, free: 96 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004676/0.1409, allocations: 498.8 kB / 481.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005867/0.1415, allocations: 0.5792 MB / 481.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001739/0.1432, allocations: 1.53 MB / 483.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.1433, allocations: 4 kB / 483.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1433, allocations: 0 / 483.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.571e-05/0.1433, allocations: 0 / 483.4 MB, free: 13.48 MB / 366.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.002946/0.1462, allocations: 1.448 MB / 484.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.1463, allocations: 11.89 kB / 484.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001716/0.1465, allocations: 143.6 kB / 485 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006047/0.1471, allocations: 155.3 kB / 485.1 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001441/0.1485, allocations: 0.8703 MB / 486 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.345e-05/0.1486, allocations: 65.97 kB / 486 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.1488, allocations: 84 kB / 486.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.1504, allocations: 1.235 MB / 487.4 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.1505, allocations: 7.844 kB / 487.4 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.379e-05/0.1505, allocations: 35.98 kB / 487.4 MB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002215/0.1508, allocations: 93.88 kB / 487.5 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.1522, allocations: 0.9991 MB / 488.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006005/0.1583, allocations: 4.924 MB / 493.4 MB, free: 3.039 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009223/0.1592, allocations: 0.6457 MB / 494.1 MB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005354/0.1598, allocations: 363.4 kB / 494.4 MB, free: 2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.188e-05/0.1598, allocations: 20.53 kB / 494.4 MB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006719/0.1605, allocations: 441.8 kB / 494.9 MB, free: 1.527 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 3.907e-06/0.1605, allocations: 0 / 494.9 MB, free: 1.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004868/0.1654, allocations: 2.715 MB / 497.6 MB, free: 14.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.1655, allocations: 107.4 kB / 497.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008685/0.1664, allocations: 0.7661 MB / 498.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.044e-05/0.1664, allocations: 37.7 kB / 498.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003318/0.1668, allocations: 0.4948 MB / 499 MB, free: 13.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.167, allocations: 240.6 kB / 499.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002489/0.1672, allocations: 178.5 kB / 499.4 MB, free: 12.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.1674, allocations: 398.7 kB / 499.8 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005482/0.168, allocations: 373.8 kB / 0.4884 GB, free: 12.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007556/0.1687, allocations: 0.6578 MB / 0.4891 GB, free: 11.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.17, allocations: 1.045 MB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.17, allocations: 4 kB / 0.4901 GB, free: 10.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002829/0.1729, allocations: 1.63 MB / 0.4917 GB, free: 8.418 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.1729, allocations: 8 kB / 0.4917 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.1729, allocations: 12 kB / 0.4917 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001513/0.1745, allocations: 494.2 kB / 0.4922 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006082/0.1751, allocations: 167.7 kB / 0.4923 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009365/0.1845, allocations: 7.087 MB / 0.4993 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007629/0.1852, allocations: 48.03 kB / 0.4993 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.1854, allocations: 47.94 kB / 0.4993 GB, free: 284 kB / 382.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.0006366/0.186, allocations: 351.5 kB / 0.4997 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.1862, allocations: 90.88 kB / 0.4998 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001856/0.1881, allocations: 1.118 MB / 0.5009 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/0.1881, allocations: 7.938 kB / 0.5009 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.1881, allocations: 4 kB / 0.5009 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.1881, allocations: 3.984 kB / 0.5009 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003728/0.1918, allocations: 2.119 MB / 0.5029 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.1919, allocations: 0 / 0.5029 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007421/0.1926, allocations: 123.8 kB / 0.5031 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000575/0.1932, allocations: 162.5 kB / 0.5032 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-05/0.1933, allocations: 27.97 kB / 0.5032 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004342/0.1977, allocations: 4.804 MB / 0.5079 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1977, allocations: 7.969 kB / 0.5079 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/0.2001, allocations: 1.533 MB / 0.5094 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004312/0.2006, allocations: 215.9 kB / 0.5097 GB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001914/0.2008, allocations: 16 kB / 0.5097 GB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000486/0.2013, allocations: 31.97 kB / 0.5097 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.2015, allocations: 60.42 kB / 0.5098 GB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/0.2015, allocations: 23.98 kB / 0.5098 GB, free: 4.898 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007722/0.2023, allocations: 0.5068 MB / 0.5103 GB, free: 4.395 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2023, allocations: 0 / 0.5103 GB, free: 4.395 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001093/0.2034, allocations: 260 kB / 0.5105 GB, free: 4.141 MB / 398.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.003304/0.2067, allocations: 2.398 MB / 0.5129 GB, free: 1.809 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00286/0.2096, allocations: 1.462 MB / 0.5143 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.2096, allocations: 1.438 kB / 0.5143 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.173/0.3827, allocations: 0.7757 MB / 0.515 GB, free: 70.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.3838, allocations: 208.1 kB / 0.5152 GB, free: 70.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01574/0.3996, allocations: 10.12 MB / 0.5251 GB, free: 66.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007145/0.4003, allocations: 1.144 MB / 0.5262 GB, free: 65.6 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009336/0.4013, allocations: 234.7 kB / 0.5265 GB, free: 65.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005104/0.4018, allocations: 359.7 kB / 0.5268 GB, free: 65.3 MB / 398.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4018, allocations: 7.562 kB / 0.5268 GB, free: 65.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04843/0.4502, allocations: 23.48 MB / 0.5498 GB, free: 51.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.84, allocations: 8 kB / 0.5498 GB, free: 51.08 MB / 398.1 MB (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 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)