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.001023/0.001023, allocations: 112.1 kB / 16.62 MB, free: 6.812 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.001011/0.001011, allocations: 190 kB / 17.55 MB, free: 5.934 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.229/1.229, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1744/0.1744, allocations: 38.02 MB / 329.4 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 65.89 kB / 398.4 MB, free: 34.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1015, allocations: 58.05 MB / 456.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008644/0.1102, allocations: 6.064 MB / 462.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006903/0.1171, allocations: 4.243 MB / 466.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007864/0.1179, allocations: 31.81 kB / 466.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008954/0.1269, allocations: 4.86 MB / 471.6 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008973/0.1279, allocations: 302.7 kB / 471.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005467/0.1284, allocations: 199.7 kB / 472.1 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001946/0.1304, allocations: 1.594 MB / 473.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008206/0.1312, allocations: 0.6119 MB / 474.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004825/0.1317, allocations: 354.7 kB / 474.7 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005498/0.1323, allocations: 446.3 kB / 475.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.364e-05/0.1324, allocations: 56 kB / 475.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.1325, allocations: 67.98 kB / 475.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002226/0.1328, allocations: 255.4 kB / 475.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002903/0.1331, allocations: 330.5 kB / 475.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007233/0.1338, allocations: 0.8022 MB / 476.6 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1338, allocations: 0 / 476.6 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1338, allocations: 0 / 476.6 MB, free: 4.066 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.865e-05/0.1338, allocations: 0 / 476.6 MB, free: 4.066 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.001534/0.1354, allocations: 0.8745 MB / 477.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.1354, allocations: 11.89 kB / 477.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001077/0.1355, allocations: 86.69 kB / 477.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002691/0.1358, allocations: 76.17 kB / 477.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008868/0.1367, allocations: 0.5332 MB / 478.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.41e-05/0.1368, allocations: 37 kB / 478.2 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.723e-05/0.1368, allocations: 47.98 kB / 478.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009273/0.1378, allocations: 0.6297 MB / 478.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.105e-05/0.1378, allocations: 11.84 kB / 478.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.907e-05/0.1379, allocations: 20 kB / 478.9 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001234/0.138, allocations: 48.97 kB / 479 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006914/0.1387, allocations: 463.6 kB / 479.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002875/0.1416, allocations: 2.522 MB / 482 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004283/0.142, allocations: 277.1 kB / 482.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002005/0.1422, allocations: 145.7 kB / 482.4 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.1423, allocations: 4.5 kB / 482.4 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.1423, allocations: 38.5 kB / 482.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.763e-06/0.1423, allocations: 0 / 482.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002696/0.145, allocations: 1.536 MB / 483.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.1451, allocations: 85.05 kB / 484 MB, free: 12.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000446/0.1455, allocations: 413.9 kB / 484.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.1456, allocations: 29.7 kB / 484.5 MB, free: 11.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002192/0.1458, allocations: 303.5 kB / 484.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.1459, allocations: 114.4 kB / 484.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.1461, allocations: 82.16 kB / 485 MB, free: 11.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1462, allocations: 358.7 kB / 485.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.1464, allocations: 128.8 kB / 485.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000309/0.1468, allocations: 270.3 kB / 485.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005564/0.1473, allocations: 461.9 kB / 486.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1473, allocations: 0 / 486.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001065/0.1484, allocations: 0.6713 MB / 486.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.1484, allocations: 10.34 kB / 486.8 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.1485, allocations: 7.938 kB / 486.8 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004319/0.1489, allocations: 153.8 kB / 487 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.1492, allocations: 79.89 kB / 487.1 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003411/0.1526, allocations: 3.676 MB / 490.7 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.1529, allocations: 15.94 kB / 490.8 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.716e-05/0.1529, allocations: 20 kB / 490.8 MB, free: 4.973 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.0002738/0.1532, allocations: 235.8 kB / 491 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.848e-05/0.1533, allocations: 43.47 kB / 491 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009025/0.1542, allocations: 0.5752 MB / 491.6 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.1542, allocations: 4 kB / 491.6 MB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006793/0.1549, allocations: 487.9 kB / 492.1 MB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.1549, allocations: 0 / 492.1 MB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.1564, allocations: 1.017 MB / 493.1 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1564, allocations: 0 / 493.1 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.1566, allocations: 35.98 kB / 493.2 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002515/0.1569, allocations: 84.78 kB / 493.2 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.1569, allocations: 12.03 kB / 493.2 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00185/0.1588, allocations: 2.036 MB / 495.3 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.1588, allocations: 0 / 495.3 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008881/0.1597, allocations: 0.6445 MB / 495.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.1598, allocations: 140.5 kB / 496.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.085e-05/0.1599, allocations: 8 kB / 496.1 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.1601, allocations: 12.05 kB / 496.1 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.1601, allocations: 27.91 kB / 496.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.1602, allocations: 8 kB / 496.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003/0.1605, allocations: 299.1 kB / 496.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1605, allocations: 0 / 496.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004842/0.161, allocations: 123.9 kB / 496.5 MB, free: 14.87 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.001122/0.1621, allocations: 1.181 MB / 497.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.1631, allocations: 0.6307 MB / 498.3 MB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.1632, allocations: 8 kB / 498.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004513/0.1636, allocations: 302.6 kB / 498.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006599/0.1643, allocations: 115.7 kB / 498.8 MB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006083/0.1704, allocations: 5.004 MB / 0.492 GB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.1709, allocations: 0.9205 MB / 0.4929 GB, free: 6.344 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002573/0.1711, allocations: 72.33 kB / 0.4929 GB, free: 6.273 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.1714, allocations: 183.4 kB / 0.4931 GB, free: 6.094 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1714, allocations: 0 / 0.4931 GB, free: 6.094 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05538/0.2267, allocations: 10.21 MB / 0.5031 GB, free: 12.07 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002297/0.227, allocations: 233.1 kB / 0.5033 GB, free: 11.81 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/2.292, allocations: 4 kB / 0.5033 GB, free: 11.8 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)