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.001077/0.001077, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001109/0.001109, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.332/1.332, allocations: 222.9 MB / 241.6 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1808/0.1808, allocations: 38.02 MB / 329.7 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 68.39 kB / 398.9 MB, free: 33.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08677/0.08818, allocations: 58.06 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005914/0.09413, allocations: 4.529 MB / 461.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.09637, allocations: 1.491 MB / 463 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002902/0.09669, allocations: 11.94 kB / 463 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004671/0.09717, allocations: 131.1 kB / 463.1 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007161/0.09792, allocations: 270.3 kB / 463.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.0982, allocations: 103.9 kB / 463.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006792/0.09889, allocations: 0.5136 MB / 464 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002533/0.09916, allocations: 159.9 kB / 464.2 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003127/0.09948, allocations: 203.1 kB / 464.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003625/0.09986, allocations: 207.1 kB / 464.6 MB, free: 316 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.01e-05/0.09993, allocations: 28 kB / 464.6 MB, free: 288 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.894e-05/0.1, allocations: 24 kB / 464.6 MB, free: 264 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.1001, allocations: 103.6 kB / 464.7 MB, free: 160 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002224/0.1004, allocations: 187.1 kB / 464.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.1007, allocations: 370.5 kB / 465.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.1007, allocations: 0 / 465.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1008, allocations: 4 kB / 465.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1008, allocations: 0 / 465.3 MB, free: 15.61 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.00103/0.1018, allocations: 0.6621 MB / 465.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.1018, allocations: 15.83 kB / 465.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.137e-05/0.1019, allocations: 58.73 kB / 466 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.119e-05/0.102, allocations: 40.47 kB / 466 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005686/0.1026, allocations: 383.5 kB / 466.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.1026, allocations: 24.56 kB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.1027, allocations: 31.92 kB / 466.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004569/0.1031, allocations: 338.2 kB / 466.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.1032, allocations: 0 / 466.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.1032, allocations: 12 kB / 466.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1032, allocations: 8 kB / 466.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003221/0.1035, allocations: 201.5 kB / 467 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.1051, allocations: 1.494 MB / 468.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003754/0.1055, allocations: 190.3 kB / 468.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.1056, allocations: 87.48 kB / 468.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.1056, allocations: 0 / 468.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.1056, allocations: 42.55 kB / 468.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 2.716e-06/0.1056, allocations: 0 / 468.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001034/0.1067, allocations: 0.6853 MB / 469.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.906e-05/0.1068, allocations: 136.5 kB / 469.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.1071, allocations: 321.6 kB / 469.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.1071, allocations: 25.7 kB / 470 MB, free: 10.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.1072, allocations: 223.8 kB / 470.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.408e-05/0.1073, allocations: 67.02 kB / 470.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.911e-05/0.1074, allocations: 53.69 kB / 470.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1075, allocations: 342.9 kB / 470.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.155e-05/0.1076, allocations: 51.97 kB / 470.7 MB, free: 9.766 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.1078, allocations: 144.9 kB / 470.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.108, allocations: 220.6 kB / 471 MB, free: 9.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.108, allocations: 0 / 471 MB, free: 9.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003655/0.1084, allocations: 256.9 kB / 471.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1084, allocations: 10.03 kB / 471.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1084, allocations: 4 kB / 471.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.1085, allocations: 8.375 kB / 471.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003616/0.1088, allocations: 87.89 kB / 471.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008397/0.1097, allocations: 1.369 MB / 472.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.1098, allocations: 8 kB / 472.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.251e-05/0.1099, allocations: 19.98 kB / 472.8 MB, free: 7.414 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.0001546/0.11, allocations: 165.8 kB / 473 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.541e-05/0.1101, allocations: 31.62 kB / 473 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003079/0.1104, allocations: 191.7 kB / 473.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1105, allocations: 0 / 473.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.1105, allocations: 4 kB / 473.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1105, allocations: 0 / 473.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007254/0.1112, allocations: 0.5489 MB / 473.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1112, allocations: 0 / 473.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.1115, allocations: 47.95 kB / 473.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.1115, allocations: 4 kB / 473.8 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.1115, allocations: 0 / 473.8 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.1115, allocations: 4 kB / 473.8 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1115, allocations: 7.938 kB / 473.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004673/0.112, allocations: 494.5 kB / 474.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.213e-05/0.1121, allocations: 104.7 kB / 474.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.1121, allocations: 4.031 kB / 474.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.1123, allocations: 11.94 kB / 474.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.989e-05/0.1124, allocations: 15.86 kB / 474.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.1124, allocations: 12 kB / 474.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000198/0.1126, allocations: 215.2 kB / 474.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1126, allocations: 4 kB / 474.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004186/0.113, allocations: 64 kB / 474.7 MB, free: 5.402 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.0006921/0.1137, allocations: 1.024 MB / 475.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003633/0.1141, allocations: 167.7 kB / 475.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.1141, allocations: 7.938 kB / 475.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.1142, allocations: 71.84 kB / 476 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007037/0.1149, allocations: 89.47 kB / 476.1 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003687/0.1186, allocations: 3.279 MB / 479.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.119, allocations: 0.8068 MB / 480.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001876/0.1192, allocations: 50.95 kB / 480.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.1194, allocations: 111.4 kB / 480.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1194, allocations: 4 kB / 480.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/0.144, allocations: 6.597 MB / 486.9 MB, free: 9.082 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.454/7.598, allocations: 4 kB / 486.9 MB, free: 9.078 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)