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 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.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.001365/0.001365, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001671/0.001671, allocations: 196 kB / 18 MB, free: 5.105 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.445/1.445, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1822/0.1822, allocations: 37.98 MB / 309.2 MB, free: 5.961 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.001532/0.001532, allocations: 67.91 kB / 431.4 MB, free: 16.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09673/0.09828, allocations: 55.24 MB / 486.6 MB, free: 8.867 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007062/0.1054, allocations: 4.799 MB / 491.4 MB, free: 4.039 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003102/0.1085, allocations: 1.531 MB / 492.9 MB, free: 2.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005411/0.1091, allocations: 15.94 kB / 492.9 MB, free: 2.484 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006152/0.1097, allocations: 107.2 kB / 493 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.111, allocations: 266.4 kB / 493.3 MB, free: 2.117 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000555/0.1115, allocations: 135.7 kB / 493.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.1126, allocations: 0.5843 MB / 494 MB, free: 1.398 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006061/0.1132, allocations: 394.6 kB / 494.4 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005104/0.1137, allocations: 243.1 kB / 494.6 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005292/0.1143, allocations: 239 kB / 494.9 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.782e-05/0.1144, allocations: 43.94 kB / 494.9 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001128/0.1145, allocations: 40 kB / 495 MB, free: 468 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.1146, allocations: 119.6 kB / 495.1 MB, free: 348 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002883/0.1149, allocations: 230.9 kB / 495.3 MB, free: 116 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005663/0.1155, allocations: 0.5022 MB / 495.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1155, allocations: 0 / 495.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1156, allocations: 4 kB / 495.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.713e-05/0.1156, allocations: 0 / 495.8 MB, free: 15.61 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001326/0.1169, allocations: 0.6953 MB / 496.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.117, allocations: 15.83 kB / 496.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.985e-05/0.1171, allocations: 78.7 kB / 496.6 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.1172, allocations: 48.38 kB / 496.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007167/0.1179, allocations: 423.8 kB / 497.1 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/0.118, allocations: 58.69 kB / 497.1 MB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.925e-05/0.1181, allocations: 36 kB / 497.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007039/0.1188, allocations: 432.1 kB / 497.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.1189, allocations: 0 / 497.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.391e-05/0.1189, allocations: 12 kB / 497.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.1189, allocations: 8 kB / 497.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005127/0.1194, allocations: 278 kB / 497.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.1216, allocations: 1.841 MB / 499.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000332/0.1219, allocations: 183.6 kB / 499.9 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/0.1221, allocations: 66.62 kB / 500 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.1221, allocations: 7.984 kB / 500 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.1222, allocations: 34.5 kB / 500 MB, free: 11.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.1222, allocations: 4 kB / 500 MB, free: 11.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001331/0.1235, allocations: 0.7097 MB / 0.489 GB, free: 10.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.882e-05/0.1236, allocations: 110.8 kB / 0.4891 GB, free: 10.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.1239, allocations: 312.4 kB / 0.4894 GB, free: 9.898 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.1239, allocations: 33.64 kB / 0.4894 GB, free: 9.859 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.1241, allocations: 236 kB / 0.4896 GB, free: 9.625 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.901e-05/0.1242, allocations: 78.92 kB / 0.4897 GB, free: 9.547 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.292e-05/0.1243, allocations: 65.94 kB / 0.4898 GB, free: 9.477 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1244, allocations: 342.8 kB / 0.4901 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.1246, allocations: 68.62 kB / 0.4902 GB, free: 9.066 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.1249, allocations: 209.4 kB / 0.4904 GB, free: 8.805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004196/0.1253, allocations: 296 kB / 0.4906 GB, free: 8.457 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1253, allocations: 0 / 0.4906 GB, free: 8.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005512/0.1259, allocations: 333.2 kB / 0.491 GB, free: 8.125 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1259, allocations: 8 kB / 0.491 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.1259, allocations: 8 kB / 0.491 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.1259, allocations: 8 kB / 0.491 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002828/0.1262, allocations: 75.83 kB / 0.4911 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.1262, allocations: 11.98 kB / 0.4911 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.1264, allocations: 12 kB / 0.4911 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.1264, allocations: 16 kB / 0.4911 GB, free: 7.988 MB / 382.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.0001753/0.1266, allocations: 189.7 kB / 0.4913 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.962e-05/0.1267, allocations: 31.56 kB / 0.4913 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003767/0.1271, allocations: 192.7 kB / 0.4915 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1271, allocations: 4 kB / 0.4915 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.1271, allocations: 0 / 0.4915 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1271, allocations: 0 / 0.4915 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009158/0.128, allocations: 0.6162 MB / 0.4921 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.1281, allocations: 0 / 0.4921 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.1283, allocations: 47.91 kB / 0.4921 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.1283, allocations: 4 kB / 0.4921 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.1283, allocations: 0 / 0.4921 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1283, allocations: 4 kB / 0.4922 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1284, allocations: 0 / 0.4922 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005978/0.129, allocations: 463.8 kB / 0.4926 GB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.97e-05/0.129, allocations: 104.8 kB / 0.4927 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/0.1291, allocations: 4 kB / 0.4927 GB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.1293, allocations: 8 kB / 0.4927 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.029e-05/0.1293, allocations: 11.98 kB / 0.4927 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.1294, allocations: 11.94 kB / 0.4927 GB, free: 6.195 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002006/0.1296, allocations: 223 kB / 0.4929 GB, free: 5.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1296, allocations: 0 / 0.4929 GB, free: 5.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003941/0.13, allocations: 72 kB / 0.493 GB, free: 5.91 MB / 382.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.0008718/0.1308, allocations: 0.9787 MB / 0.494 GB, free: 4.898 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003959/0.1312, allocations: 192.5 kB / 0.4941 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1313, allocations: 320 / 0.4941 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.1314, allocations: 79.91 kB / 0.4942 GB, free: 4.633 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000647/0.1321, allocations: 106 kB / 0.4943 GB, free: 4.531 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004138/0.1362, allocations: 3.415 MB / 0.4977 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.1367, allocations: 0.8262 MB / 0.4985 GB, free: 52 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.1368, allocations: 47.27 kB / 0.4985 GB, free: 8 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.137, allocations: 119.5 kB / 0.4986 GB, free: 15.89 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.137, allocations: 0 / 0.4986 GB, free: 15.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02751/0.1645, allocations: 7.109 MB / 0.5056 GB, free: 8.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.908/8.073, allocations: 11.98 kB / 0.5056 GB, free: 8.711 MB / 398.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)