Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.001204/0.001205, allocations: 106.8 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.001245/0.001245, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.356/1.356, allocations: 222.9 MB / 241.2 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1701/0.1701, allocations: 38.03 MB / 329.4 MB, free: 8.902 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 71.38 kB / 398.4 MB, free: 34.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09199/0.09327, allocations: 58.06 MB / 456.4 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005382/0.09867, allocations: 5.176 MB / 461.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.101, allocations: 1.674 MB / 463.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004587/0.1015, allocations: 27.81 kB / 463.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004609/0.102, allocations: 103.4 kB / 463.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008326/0.1028, allocations: 250.6 kB / 463.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.1031, allocations: 95.89 kB / 463.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007984/0.1039, allocations: 0.5098 MB / 464.3 MB, free: 448 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002355/0.1042, allocations: 159.8 kB / 464.4 MB, free: 292 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003009/0.1045, allocations: 203.2 kB / 464.6 MB, free: 88 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.1048, allocations: 223 kB / 464.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.348e-05/0.1049, allocations: 24 kB / 464.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.662e-05/0.1049, allocations: 28 kB / 464.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.399e-05/0.105, allocations: 95.72 kB / 465 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.1052, allocations: 183 kB / 465.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000325/0.1055, allocations: 370.7 kB / 465.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1055, allocations: 4 kB / 465.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1055, allocations: 4 kB / 465.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.1056, allocations: 0 / 465.5 MB, free: 15.17 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008976/0.1065, allocations: 0.6593 MB / 466.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.1065, allocations: 15.89 kB / 466.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.347e-05/0.1066, allocations: 58.73 kB / 466.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.679e-05/0.1066, allocations: 44.41 kB / 466.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004964/0.1071, allocations: 387.4 kB / 466.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.1072, allocations: 16.56 kB / 466.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.298e-05/0.1072, allocations: 32 kB / 466.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004368/0.1077, allocations: 334.2 kB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.1077, allocations: 3.938 kB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.1077, allocations: 15.98 kB / 467.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.1077, allocations: 4 kB / 467.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003084/0.108, allocations: 205.5 kB / 467.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.1095, allocations: 1.49 MB / 468.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.1098, allocations: 198.3 kB / 469 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.986e-05/0.1099, allocations: 75.48 kB / 469 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.1099, allocations: 7.984 kB / 469.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.11, allocations: 34.5 kB / 469.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.453e-06/0.11, allocations: 0 / 469.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009197/0.1109, allocations: 0.6856 MB / 469.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/0.111, allocations: 136.5 kB / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.1112, allocations: 317.6 kB / 470.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.1113, allocations: 29.7 kB / 470.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.1114, allocations: 219.7 kB / 470.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.572e-05/0.1114, allocations: 67.08 kB / 470.5 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.526e-05/0.1115, allocations: 53.69 kB / 470.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.1116, allocations: 342.9 kB / 470.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.561e-05/0.1117, allocations: 55.91 kB / 471 MB, free: 9.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.1118, allocations: 144.8 kB / 471.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.1121, allocations: 220.3 kB / 471.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1121, allocations: 0 / 471.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003304/0.1124, allocations: 264.9 kB / 471.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.1125, allocations: 10.19 kB / 471.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1125, allocations: 0 / 471.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.1125, allocations: 11.94 kB / 471.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003308/0.1128, allocations: 80.33 kB / 471.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007655/0.1136, allocations: 1.385 MB / 473.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.1137, allocations: 11.91 kB / 473.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.1138, allocations: 12 kB / 473.1 MB, free: 6.965 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.1139, allocations: 165.7 kB / 473.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.819e-05/0.114, allocations: 35.72 kB / 473.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.1143, allocations: 184.4 kB / 473.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1143, allocations: 4 kB / 473.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.1143, allocations: 0 / 473.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1143, allocations: 4 kB / 473.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006536/0.115, allocations: 0.5335 MB / 474 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.115, allocations: 4 kB / 474 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/0.1152, allocations: 47.95 kB / 474.1 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.1152, allocations: 0 / 474.1 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.1152, allocations: 4 kB / 474.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1152, allocations: 4 kB / 474.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1152, allocations: 3.938 kB / 474.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000397/0.1157, allocations: 0.4888 MB / 474.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.474e-05/0.1157, allocations: 104.8 kB / 474.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.579e-05/0.1158, allocations: 8 kB / 474.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.116, allocations: 4 kB / 474.7 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.608e-05/0.116, allocations: 15.92 kB / 474.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.116, allocations: 8 kB / 474.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000185/0.1162, allocations: 227.2 kB / 474.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1162, allocations: 0 / 474.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003823/0.1166, allocations: 64 kB / 475 MB, free: 4.965 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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.0006484/0.1173, allocations: 1.03 MB / 476 MB, free: 3.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003327/0.1176, allocations: 174.5 kB / 476.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1176, allocations: 0 / 476.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.95e-05/0.1177, allocations: 63.91 kB / 476.2 MB, free: 3.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006516/0.1184, allocations: 101.7 kB / 476.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003334/0.1217, allocations: 3.386 MB / 479.7 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.1221, allocations: 0.8068 MB / 480.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001723/0.1222, allocations: 46.95 kB / 480.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.1224, allocations: 119.4 kB / 480.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1224, allocations: 3.938 kB / 480.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9014/1.024, allocations: 6.499 MB / 487.2 MB, free: 8.668 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002496/1.024, allocations: 200.1 kB / 487.4 MB, free: 8.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/2.717, allocations: 0 / 487.4 MB, free: 8.41 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)