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.001274/0.001274, allocations: 107.4 kB / 16.92 MB, free: 5.781 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.001484/0.001485, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.323/1.323, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1749/0.1749, allocations: 38.02 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001219, allocations: 63.94 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.09969, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007088/0.1068, allocations: 4.52 MB / 461.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.1092, allocations: 1.499 MB / 463 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003689/0.1096, allocations: 11.94 kB / 463 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005049/0.1101, allocations: 123.2 kB / 463.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008174/0.111, allocations: 274.3 kB / 463.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.1113, allocations: 107.8 kB / 463.5 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006828/0.112, allocations: 0.5058 MB / 464 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002399/0.1122, allocations: 167.8 kB / 464.2 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002486/0.1125, allocations: 195.2 kB / 464.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002918/0.1128, allocations: 207.1 kB / 464.6 MB, free: 348 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.595e-05/0.1128, allocations: 24 kB / 464.6 MB, free: 324 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.795e-05/0.1129, allocations: 28 kB / 464.6 MB, free: 296 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.113, allocations: 111.6 kB / 464.7 MB, free: 184 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.1132, allocations: 183.1 kB / 464.9 MB, free: 0 / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004281/0.1136, allocations: 370.7 kB / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1136, allocations: 0 / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1137, allocations: 0 / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.1137, allocations: 0 / 465.3 MB, free: 15.64 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.001139/0.1148, allocations: 0.6632 MB / 465.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.1149, allocations: 11.89 kB / 465.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.382e-05/0.1149, allocations: 62.72 kB / 466 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.33e-05/0.115, allocations: 40.47 kB / 466 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005784/0.1156, allocations: 387.4 kB / 466.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.1156, allocations: 20.56 kB / 466.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.207e-05/0.1157, allocations: 24 kB / 466.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004743/0.1162, allocations: 338.2 kB / 466.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.1162, allocations: 0 / 466.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.894e-05/0.1162, allocations: 12 kB / 466.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.1163, allocations: 8 kB / 466.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003354/0.1166, allocations: 205.5 kB / 467 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.1182, allocations: 1.49 MB / 468.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/0.1186, allocations: 198.3 kB / 468.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.1187, allocations: 83.47 kB / 468.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.1187, allocations: 4 kB / 468.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.1188, allocations: 38.56 kB / 468.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.1188, allocations: 3.938 kB / 468.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.00102/0.1198, allocations: 0.6853 MB / 469.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/0.1199, allocations: 136.5 kB / 469.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002888/0.1202, allocations: 317.6 kB / 469.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.1202, allocations: 30.08 kB / 470 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.1204, allocations: 223.8 kB / 470.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.915e-05/0.1204, allocations: 63.02 kB / 470.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.272e-05/0.1205, allocations: 57.69 kB / 470.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1206, allocations: 338.8 kB / 470.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.224e-05/0.1207, allocations: 47.98 kB / 470.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.1209, allocations: 148.8 kB / 470.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/0.1212, allocations: 228 kB / 471.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1212, allocations: 0 / 471.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003595/0.1216, allocations: 257.3 kB / 471.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1216, allocations: 8 kB / 471.3 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.1216, allocations: 4 kB / 471.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1216, allocations: 7.938 kB / 471.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003695/0.122, allocations: 75.91 kB / 471.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009115/0.1229, allocations: 1.373 MB / 472.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.1231, allocations: 8.156 kB / 472.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.1231, allocations: 20 kB / 472.8 MB, free: 7.445 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.0001655/0.1233, allocations: 165.7 kB / 473 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.1234, allocations: 31.62 kB / 473 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003013/0.1237, allocations: 180.5 kB / 473.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1237, allocations: 7.984 kB / 473.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1237, allocations: 4 kB / 473.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.1237, allocations: 4.031 kB / 473.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007917/0.1245, allocations: 0.5411 MB / 473.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1245, allocations: 0 / 473.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002275/0.1247, allocations: 43.91 kB / 473.8 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.1248, allocations: 4 kB / 473.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.1248, allocations: 4 kB / 473.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.1248, allocations: 8 kB / 473.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1248, allocations: 3.938 kB / 473.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004355/0.1252, allocations: 0.4906 MB / 474.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.449e-05/0.1253, allocations: 100.7 kB / 474.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/0.1254, allocations: 7.938 kB / 474.4 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.1256, allocations: 8 kB / 474.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.15e-05/0.1256, allocations: 19.95 kB / 474.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.1256, allocations: 8 kB / 474.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002072/0.1259, allocations: 219.2 kB / 474.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1259, allocations: 0 / 474.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004081/0.1263, allocations: 60 kB / 474.7 MB, free: 5.438 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.0007649/0.127, allocations: 1.034 MB / 475.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003768/0.1274, allocations: 176.4 kB / 475.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1274, allocations: 0 / 475.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.1276, allocations: 68.05 kB / 476 MB, free: 4.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007073/0.1283, allocations: 104 kB / 476.1 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004255/0.1325, allocations: 3.264 MB / 479.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004591/0.133, allocations: 0.8068 MB / 480.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002179/0.1332, allocations: 54.94 kB / 480.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/0.1334, allocations: 115.4 kB / 480.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1334, allocations: 3.938 kB / 480.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.161, allocations: 6.593 MB / 486.9 MB, free: 9.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.263/7.424, allocations: 11.06 kB / 486.9 MB, free: 9.102 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)