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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 114.4 kB / 17.07 MB, free: 5.949 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.001924/0.001925, allocations: 194.9 kB / 18 MB, free: 5.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1949/0.1949, allocations: 37.98 MB / 309.2 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 63.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1209, allocations: 55.25 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008504/0.1294, allocations: 5.206 MB / 491.8 MB, free: 3.598 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007117/0.1366, allocations: 4.02 MB / 495.8 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007462/0.1374, allocations: 15.94 kB / 495.9 MB, free: 15.55 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.01002/0.1475, allocations: 4.788 MB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009555/0.1485, allocations: 318.5 kB / 0.4892 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000646/0.1491, allocations: 211.6 kB / 0.4894 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002359/0.1515, allocations: 1.559 MB / 0.4909 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009978/0.1525, allocations: 0.5885 MB / 0.4915 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007089/0.1533, allocations: 366.7 kB / 0.4919 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008135/0.1541, allocations: 418.4 kB / 0.4923 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001371/0.1542, allocations: 56 kB / 0.4923 GB, free: 7.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002676/0.1545, allocations: 75.98 kB / 0.4924 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000336/0.1549, allocations: 251.3 kB / 0.4926 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005418/0.1554, allocations: 326.4 kB / 0.4929 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.1564, allocations: 0.806 MB / 0.4937 GB, free: 5.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.1565, allocations: 4 kB / 0.4937 GB, free: 5.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1565, allocations: 4 kB / 0.4937 GB, free: 5.793 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.572e-05/0.1565, allocations: 0 / 0.4937 GB, free: 5.793 MB / 382.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.00199/0.1585, allocations: 0.8668 MB / 0.4946 GB, free: 4.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.1586, allocations: 15.89 kB / 0.4946 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001296/0.1587, allocations: 86.7 kB / 0.4947 GB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003218/0.159, allocations: 64.19 kB / 0.4947 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.1602, allocations: 0.5683 MB / 0.4953 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.443e-05/0.1602, allocations: 40.97 kB / 0.4953 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.1603, allocations: 44 kB / 0.4954 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.1614, allocations: 0.6296 MB / 0.496 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.001e-05/0.1615, allocations: 4 kB / 0.496 GB, free: 3.348 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.952e-05/0.1615, allocations: 19.98 kB / 0.496 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00016/0.1617, allocations: 44.97 kB / 0.4961 GB, free: 3.281 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008527/0.1626, allocations: 467.6 kB / 0.4965 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003564/0.1661, allocations: 2.503 MB / 0.4989 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.1666, allocations: 285.3 kB / 0.4992 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/0.1668, allocations: 141.7 kB / 0.4994 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.1669, allocations: 4 kB / 0.4994 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.1669, allocations: 46.44 kB / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.644e-06/0.1669, allocations: 0 / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002924/0.1698, allocations: 1.544 MB / 0.5009 GB, free: 14.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.1699, allocations: 85.23 kB / 0.501 GB, free: 13.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.1704, allocations: 413.9 kB / 0.5014 GB, free: 13.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.1704, allocations: 29.7 kB / 0.5014 GB, free: 13.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.1706, allocations: 299.5 kB / 0.5017 GB, free: 13.17 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.1708, allocations: 114.4 kB / 0.5018 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.1709, allocations: 82.03 kB / 0.5019 GB, free: 12.97 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1711, allocations: 354.7 kB / 0.5022 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.1713, allocations: 132.8 kB / 0.5023 GB, free: 12.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003169/0.1716, allocations: 286.2 kB / 0.5026 GB, free: 12.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005343/0.1721, allocations: 445.7 kB / 0.503 GB, free: 11.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.1721, allocations: 4 kB / 0.5031 GB, free: 11.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001044/0.1732, allocations: 0.6872 MB / 0.5037 GB, free: 10.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.1732, allocations: 4 kB / 0.5037 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.1732, allocations: 11.94 kB / 0.5037 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004535/0.1737, allocations: 137.6 kB / 0.5039 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002989/0.174, allocations: 75.89 kB / 0.5039 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003367/0.1774, allocations: 3.676 MB / 0.5075 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002495/0.1777, allocations: 16 kB / 0.5075 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.1777, allocations: 23.98 kB / 0.5076 GB, free: 6.684 MB / 398.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.0002989/0.178, allocations: 225.7 kB / 0.5078 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.323e-05/0.1781, allocations: 59.44 kB / 0.5078 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009305/0.179, allocations: 0.567 MB / 0.5084 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.1791, allocations: 4 kB / 0.5084 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007027/0.1798, allocations: 499.3 kB / 0.5089 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1798, allocations: 0 / 0.5089 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001417/0.1812, allocations: 0.9977 MB / 0.5098 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1812, allocations: 0 / 0.5098 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001964/0.1814, allocations: 39.98 kB / 0.5099 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000273/0.1817, allocations: 88.77 kB / 0.51 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.1817, allocations: 12.09 kB / 0.51 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001913/0.1837, allocations: 2.016 MB / 0.512 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1837, allocations: 3.938 kB / 0.512 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008707/0.1845, allocations: 0.6492 MB / 0.5126 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.1847, allocations: 132.5 kB / 0.5127 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.913e-05/0.1848, allocations: 8 kB / 0.5127 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.1849, allocations: 11.98 kB / 0.5127 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.652e-05/0.185, allocations: 35.89 kB / 0.5128 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.185, allocations: 8 kB / 0.5128 GB, free: 1.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003199/0.1854, allocations: 303.1 kB / 0.5131 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1854, allocations: 0 / 0.5131 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005378/0.1859, allocations: 123.9 kB / 0.5132 GB, free: 0.5977 MB / 398.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.001159/0.1871, allocations: 1.189 MB / 0.5143 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009765/0.1881, allocations: 0.6158 MB / 0.5149 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1881, allocations: 0 / 0.5149 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004462/0.1885, allocations: 302.6 kB / 0.5152 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006297/0.1892, allocations: 122.1 kB / 0.5154 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006154/0.1954, allocations: 4.777 MB / 0.52 GB, free: 9.246 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.1959, allocations: 0.9167 MB / 0.5209 GB, free: 8.305 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002207/0.1961, allocations: 76.33 kB / 0.521 GB, free: 8.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002494/0.1964, allocations: 179.4 kB / 0.5212 GB, free: 8.055 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1964, allocations: 0 / 0.5212 GB, free: 8.055 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3774/0.5737, allocations: 10.61 MB / 0.5315 GB, free: 53.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.59, allocations: 9.125 kB / 0.5315 GB, free: 53.14 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)