Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.001074/0.001074, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001041/0.001041, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.331/1.331, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1712/0.1712, allocations: 38.03 MB / 329.7 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 63.77 kB / 398.9 MB, free: 33.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1036, allocations: 58.06 MB / 457 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005957/0.1096, allocations: 4.798 MB / 461.8 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.1117, allocations: 1.487 MB / 463.2 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.1119, allocations: 15.94 kB / 463.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003558/0.1123, allocations: 115.1 kB / 463.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005926/0.1129, allocations: 262.4 kB / 463.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.1132, allocations: 143.8 kB / 463.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006729/0.1139, allocations: 0.5799 MB / 464.3 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004689/0.1144, allocations: 390.6 kB / 464.7 MB, free: 116 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002982/0.1147, allocations: 239.1 kB / 465 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003235/0.115, allocations: 239 kB / 465.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.159e-05/0.1151, allocations: 40 kB / 465.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.525e-05/0.1152, allocations: 40 kB / 465.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.1153, allocations: 123.6 kB / 465.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.1155, allocations: 223 kB / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000481/0.116, allocations: 0.5022 MB / 466.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.116, allocations: 0 / 466.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1161, allocations: 0 / 466.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.1161, allocations: 4 kB / 466.1 MB, free: 14.72 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001232/0.1173, allocations: 0.6992 MB / 466.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1174, allocations: 11.89 kB / 466.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.574e-05/0.1174, allocations: 74.66 kB / 466.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.103e-05/0.1175, allocations: 52.38 kB / 467 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005855/0.1181, allocations: 403.8 kB / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.671e-05/0.1182, allocations: 54.7 kB / 467.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.905e-05/0.1183, allocations: 39.94 kB / 467.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006283/0.119, allocations: 432.1 kB / 467.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.119, allocations: 0 / 467.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.119, allocations: 12 kB / 467.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.119, allocations: 12 kB / 467.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004911/0.1195, allocations: 278 kB / 468.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.1215, allocations: 1.849 MB / 470 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003568/0.1219, allocations: 175.6 kB / 470.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.122, allocations: 74.67 kB / 470.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.1221, allocations: 0 / 470.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.1221, allocations: 38.5 kB / 470.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 2.154e-06/0.1221, allocations: 0 / 470.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001445/0.1236, allocations: 0.7053 MB / 471 MB, free: 9.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.148e-05/0.1237, allocations: 110.8 kB / 471.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003461/0.124, allocations: 308.5 kB / 471.4 MB, free: 9.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.077e-05/0.1241, allocations: 33.7 kB / 471.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000184/0.1243, allocations: 243.8 kB / 471.7 MB, free: 8.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.326e-05/0.1243, allocations: 75 kB / 471.7 MB, free: 8.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.1245, allocations: 69.92 kB / 471.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1246, allocations: 334.8 kB / 472.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.1248, allocations: 76.61 kB / 472.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002558/0.1251, allocations: 205.5 kB / 472.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004444/0.1255, allocations: 293.8 kB / 472.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1255, allocations: 4 kB / 472.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005718/0.1261, allocations: 325.2 kB / 473 MB, free: 7.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.1261, allocations: 11.38 kB / 473 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1262, allocations: 4 kB / 473 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.442e-05/0.1262, allocations: 8 kB / 473.1 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002972/0.1265, allocations: 79.83 kB / 473.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1265, allocations: 4 kB / 473.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/0.1267, allocations: 16 kB / 473.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.1267, allocations: 12 kB / 473.2 MB, free: 7.145 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002058/0.1269, allocations: 181.8 kB / 473.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.601e-05/0.127, allocations: 35.56 kB / 473.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003855/0.1274, allocations: 192.6 kB / 473.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1274, allocations: 4 kB / 473.6 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1274, allocations: 0 / 473.6 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1274, allocations: 7.984 kB / 473.6 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008662/0.1283, allocations: 0.6161 MB / 474.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1283, allocations: 8.016 kB / 474.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.1286, allocations: 43.92 kB / 474.2 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1286, allocations: 0 / 474.2 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.1286, allocations: 4 kB / 474.2 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1286, allocations: 0 / 474.2 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1286, allocations: 4 kB / 474.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005837/0.1292, allocations: 459.8 kB / 474.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.706e-05/0.1293, allocations: 104.8 kB / 474.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.7e-05/0.1294, allocations: 8 kB / 474.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.1295, allocations: 12 kB / 474.8 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.06e-05/0.1296, allocations: 7.984 kB / 474.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.1296, allocations: 7.984 kB / 474.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002607/0.1299, allocations: 230.9 kB / 475.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1299, allocations: 0 / 475.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004259/0.1303, allocations: 72 kB / 475.1 MB, free: 5.055 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001017/0.1314, allocations: 0.9784 MB / 476.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00041/0.1318, allocations: 203.6 kB / 476.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1318, allocations: 256 / 476.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001644/0.132, allocations: 91.83 kB / 476.4 MB, free: 3.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006384/0.1326, allocations: 90.83 kB / 476.5 MB, free: 3.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004285/0.1369, allocations: 3.43 MB / 479.9 MB, free: 32 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.1373, allocations: 0.8146 MB / 480.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002121/0.1375, allocations: 51.25 kB / 480.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.1377, allocations: 123.4 kB / 480.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1377, allocations: 0 / 480.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.1643, allocations: 6.892 MB / 487.8 MB, free: 8.238 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.205/7.369, allocations: 9.531 kB / 487.8 MB, free: 8.23 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)