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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.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.001105/0.001105, allocations: 107.8 kB / 16.92 MB, free: 6.188 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.001252/0.001252, allocations: 191.4 kB / 17.85 MB, free: 5.289 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.287/1.287, 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/package.mo): time 0.1733/0.1733, allocations: 38.02 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 65.27 kB / 398.9 MB, free: 33.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08477/0.08624, allocations: 58.05 MB / 457 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006539/0.09282, allocations: 5.222 MB / 462.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005373/0.09823, allocations: 3.972 MB / 466.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003496/0.09861, allocations: 19.88 kB / 466.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008663/0.1073, allocations: 4.8 MB / 471 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00076/0.1081, allocations: 310.5 kB / 471.3 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005147/0.1086, allocations: 223.7 kB / 471.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001933/0.1106, allocations: 1.555 MB / 473 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008105/0.1114, allocations: 0.5885 MB / 473.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005098/0.1119, allocations: 362.7 kB / 474 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005838/0.1125, allocations: 402.5 kB / 474.4 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.1126, allocations: 56 kB / 474.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000209/0.1128, allocations: 75.92 kB / 474.5 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002426/0.1131, allocations: 255.3 kB / 474.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003438/0.1134, allocations: 322.5 kB / 475.1 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007395/0.1142, allocations: 0.8022 MB / 475.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.1142, allocations: 0 / 475.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1142, allocations: 0 / 475.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.031e-05/0.1142, allocations: 0 / 475.9 MB, free: 4.934 MB / 350.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.001531/0.1158, allocations: 0.8745 MB / 476.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.1158, allocations: 11.89 kB / 476.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.1159, allocations: 90.69 kB / 476.9 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002675/0.1162, allocations: 76.03 kB / 476.9 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008632/0.1171, allocations: 0.5449 MB / 477.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.1171, allocations: 37 kB / 477.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.497e-05/0.1172, allocations: 43.98 kB / 477.5 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008751/0.1181, allocations: 0.6296 MB / 478.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.1181, allocations: 4 kB / 478.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.644e-05/0.1182, allocations: 19.98 kB / 478.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.1183, allocations: 52.95 kB / 478.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006784/0.119, allocations: 463.6 kB / 478.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002694/0.1217, allocations: 2.518 MB / 481.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.1221, allocations: 269.2 kB / 481.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001943/0.1223, allocations: 150.2 kB / 481.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.1223, allocations: 8.484 kB / 481.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.1224, allocations: 46.42 kB / 481.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.235e-06/0.1224, allocations: 3.938 kB / 481.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002645/0.125, allocations: 1.538 MB / 483.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.1251, allocations: 85.11 kB / 483.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004291/0.1255, allocations: 409.9 kB / 483.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.1256, allocations: 29.7 kB / 483.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.1258, allocations: 303.5 kB / 484 MB, free: 12.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.387e-05/0.1259, allocations: 110.5 kB / 484.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.126, allocations: 82.03 kB / 484.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1261, allocations: 362.7 kB / 484.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.1264, allocations: 128.8 kB / 484.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002862/0.1266, allocations: 278.3 kB / 485 MB, free: 11.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005287/0.1272, allocations: 453.7 kB / 485.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.1272, allocations: 0 / 485.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001042/0.1282, allocations: 0.6792 MB / 486.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.1283, allocations: 10.62 kB / 486.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.1283, allocations: 11.94 kB / 486.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000413/0.1287, allocations: 141.6 kB / 486.3 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.129, allocations: 75.89 kB / 486.3 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003149/0.1322, allocations: 3.68 MB / 490 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.1325, allocations: 15.92 kB / 490 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-05/0.1325, allocations: 20 kB / 490.1 MB, free: 5.824 MB / 366.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.0002769/0.1328, allocations: 229.7 kB / 490.3 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.711e-05/0.1329, allocations: 55.42 kB / 490.3 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009337/0.1338, allocations: 0.5672 MB / 490.9 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.1339, allocations: 4 kB / 490.9 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006813/0.1346, allocations: 489.7 kB / 491.4 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1346, allocations: 96 / 491.4 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.136, allocations: 1.01 MB / 492.4 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.136, allocations: 0 / 492.4 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.1362, allocations: 39.97 kB / 492.4 MB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002589/0.1364, allocations: 92.86 kB / 492.5 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.1365, allocations: 11.94 kB / 492.5 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001838/0.1383, allocations: 2.023 MB / 494.6 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1383, allocations: 3.938 kB / 494.6 MB, free: 1.031 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000859/0.1392, allocations: 0.646 MB / 495.2 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.1393, allocations: 140.5 kB / 495.3 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.716e-05/0.1394, allocations: 8 kB / 495.3 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.1396, allocations: 7.938 kB / 495.4 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.1397, allocations: 27.95 kB / 495.4 MB, free: 160 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.1397, allocations: 8 kB / 495.4 MB, free: 152 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000313/0.14, allocations: 299.2 kB / 495.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.14, allocations: 4 kB / 495.7 MB, free: 15.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005027/0.1405, allocations: 119.9 kB / 495.8 MB, free: 15.73 MB / 382.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.001126/0.1417, allocations: 1.189 MB / 497 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.1427, allocations: 0.6353 MB / 497.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1427, allocations: 0 / 497.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004297/0.1431, allocations: 298.4 kB / 497.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000654/0.1438, allocations: 110.8 kB / 498 MB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00593/0.1497, allocations: 4.814 MB / 0.4911 GB, free: 8.344 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004726/0.1502, allocations: 0.9206 MB / 0.492 GB, free: 7.398 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002734/0.1505, allocations: 76.31 kB / 0.492 GB, free: 7.324 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.1507, allocations: 179.4 kB / 0.4922 GB, free: 7.148 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1508, allocations: 0 / 0.4922 GB, free: 7.148 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03206/0.1828, allocations: 10.27 MB / 0.5022 GB, free: 13.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.178/9.361, allocations: 14.69 kB / 0.5022 GB, free: 13 MB / 398.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)