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.001163/0.001163, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001177/0.001177, allocations: 200 kB / 18.01 MB, free: 5.055 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.294/1.294, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1786/0.1786, allocations: 37.99 MB / 309.2 MB, free: 5.941 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.001462/0.001462, allocations: 67.89 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08836/0.08983, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006996/0.09687, allocations: 5.218 MB / 491.8 MB, free: 3.598 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005557/0.1025, allocations: 4.016 MB / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004133/0.1029, 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.009088/0.112, allocations: 4.796 MB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00115/0.1132, allocations: 318.5 kB / 0.4892 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000668/0.1139, allocations: 207.7 kB / 0.4894 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002198/0.1161, allocations: 1.563 MB / 0.4909 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009501/0.1171, allocations: 0.5846 MB / 0.4915 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007256/0.1178, allocations: 370.7 kB / 0.4919 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008592/0.1187, allocations: 410.4 kB / 0.4923 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001787/0.1189, allocations: 56 kB / 0.4923 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003241/0.1193, allocations: 75.98 kB / 0.4924 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003444/0.1196, allocations: 255.3 kB / 0.4926 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004558/0.1201, allocations: 326.4 kB / 0.4929 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008988/0.121, allocations: 0.806 MB / 0.4937 GB, free: 5.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.121, allocations: 4 kB / 0.4937 GB, free: 5.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.121, allocations: 0 / 0.4937 GB, free: 5.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.941e-05/0.121, allocations: 0 / 0.4937 GB, free: 5.797 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.001678/0.1227, allocations: 0.8707 MB / 0.4946 GB, free: 4.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1228, allocations: 11.89 kB / 0.4946 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.999e-05/0.1229, allocations: 86.7 kB / 0.4947 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002796/0.1232, allocations: 72.19 kB / 0.4947 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.1242, allocations: 0.5644 MB / 0.4953 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/0.1243, allocations: 36.98 kB / 0.4953 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.1244, allocations: 55.97 kB / 0.4954 GB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008913/0.1253, allocations: 0.6257 MB / 0.496 GB, free: 3.348 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.1253, allocations: 4 kB / 0.496 GB, free: 3.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.238e-05/0.1254, allocations: 19.98 kB / 0.496 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/0.1255, allocations: 48.97 kB / 0.4961 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006764/0.1262, allocations: 463.6 kB / 0.4965 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00285/0.129, allocations: 2.503 MB / 0.4989 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004305/0.1295, allocations: 277.2 kB / 0.4992 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.1297, allocations: 145.7 kB / 0.4994 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.1297, allocations: 11.97 kB / 0.4994 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.1298, allocations: 42.44 kB / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.814e-06/0.1298, allocations: 0 / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002849/0.1326, allocations: 1.54 MB / 0.5009 GB, free: 14.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.1327, allocations: 81.11 kB / 0.501 GB, free: 13.92 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005151/0.1332, allocations: 418 kB / 0.5014 GB, free: 13.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.1333, allocations: 29.7 kB / 0.5014 GB, free: 13.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.1335, allocations: 299.5 kB / 0.5017 GB, free: 13.17 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.1336, allocations: 114.4 kB / 0.5018 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.1337, allocations: 86.03 kB / 0.5019 GB, free: 12.97 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.1339, allocations: 354.7 kB / 0.5022 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.1341, allocations: 128.8 kB / 0.5024 GB, free: 12.49 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002894/0.1344, allocations: 282.2 kB / 0.5026 GB, free: 12.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005301/0.135, allocations: 453.7 kB / 0.5031 GB, free: 11.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.135, allocations: 0 / 0.5031 GB, free: 11.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001046/0.136, allocations: 0.6874 MB / 0.5037 GB, free: 10.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1361, allocations: 8 kB / 0.5037 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.1361, allocations: 7.938 kB / 0.5037 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004609/0.1365, allocations: 137.6 kB / 0.5039 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002842/0.1368, allocations: 79.89 kB / 0.5039 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003349/0.1402, allocations: 3.68 MB / 0.5075 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002865/0.1405, allocations: 16 kB / 0.5076 GB, free: 6.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/0.1406, allocations: 16 kB / 0.5076 GB, free: 6.688 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.000291/0.1409, allocations: 233.7 kB / 0.5078 GB, free: 6.449 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.005e-05/0.141, allocations: 51.38 kB / 0.5078 GB, free: 6.398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009337/0.1419, allocations: 0.5711 MB / 0.5084 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.1419, allocations: 4 kB / 0.5084 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006983/0.1426, allocations: 495.3 kB / 0.5089 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.1426, allocations: 0 / 0.5089 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001523/0.1442, allocations: 0.9937 MB / 0.5098 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.1442, allocations: 0 / 0.5098 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002189/0.1444, allocations: 39.98 kB / 0.5099 GB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002732/0.1447, allocations: 92.7 kB / 0.51 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.1447, allocations: 11.98 kB / 0.51 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001974/0.1467, allocations: 2.016 MB / 0.512 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.1467, allocations: 4.031 kB / 0.512 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009185/0.1477, allocations: 0.6491 MB / 0.5126 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.1479, allocations: 136.6 kB / 0.5127 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.677e-05/0.1479, allocations: 8 kB / 0.5127 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.1481, allocations: 11.98 kB / 0.5127 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.46e-05/0.1482, allocations: 23.97 kB / 0.5128 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.1482, allocations: 16 kB / 0.5128 GB, free: 1.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003834/0.1486, allocations: 303.1 kB / 0.5131 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1486, allocations: 0 / 0.5131 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005401/0.1492, allocations: 119.9 kB / 0.5132 GB, free: 0.6016 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.001212/0.1504, allocations: 1.201 MB / 0.5144 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009924/0.1514, allocations: 0.6112 MB / 0.515 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1514, allocations: 0 / 0.515 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004462/0.1518, allocations: 303.4 kB / 0.5152 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006909/0.1525, allocations: 117.7 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.006573/0.1591, allocations: 4.769 MB / 0.52 GB, free: 9.254 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/0.1598, allocations: 0.9206 MB / 0.5209 GB, free: 8.309 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002489/0.16, allocations: 76.33 kB / 0.521 GB, free: 8.234 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/0.1603, allocations: 179.4 kB / 0.5212 GB, free: 8.059 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1603, allocations: 0 / 0.5212 GB, free: 8.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2289/0.3892, allocations: 10.61 MB / 0.5315 GB, free: 52.97 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.74, allocations: 4.812 kB / 0.5315 GB, free: 52.97 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)