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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 120.1 kB / 18.49 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 215.1 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.532/1.532, allocations: 230.6 MB / 254.8 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1856/0.1856, allocations: 38.5 MB / 349.4 MB, free: 2.629 MB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00235/0.00235, allocations: 68.31 kB / 487.8 MB, free: 32.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.116, allocations: 62.41 MB / 0.5374 GB, free: 9.566 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006894/0.1229, allocations: 4.599 MB / 0.5418 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002858/0.1258, allocations: 1.519 MB / 0.5433 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003176/0.1261, allocations: 23.81 kB / 0.5433 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004824/0.1266, allocations: 119.1 kB / 0.5435 GB, free: 3.281 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007713/0.1274, allocations: 282.2 kB / 0.5437 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.1277, allocations: 107.8 kB / 0.5438 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000756/0.1284, allocations: 0.5096 MB / 0.5443 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002576/0.1287, allocations: 131.8 kB / 0.5445 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003295/0.129, allocations: 211.2 kB / 0.5447 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003308/0.1293, allocations: 219 kB / 0.5449 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.462e-05/0.1294, allocations: 28 kB / 0.5449 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.903e-05/0.1294, allocations: 24 kB / 0.5449 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.1296, allocations: 103.7 kB / 0.545 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002147/0.1298, allocations: 183.1 kB / 0.5452 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005385/0.1303, allocations: 382.3 kB / 0.5456 GB, free: 1.125 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1303, allocations: 4 kB / 0.5456 GB, free: 1.121 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1303, allocations: 7.938 kB / 0.5456 GB, free: 1.113 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1303, allocations: 0 / 0.5456 GB, free: 1.113 MB / 398.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.001216/0.1315, allocations: 0.6629 MB / 0.5462 GB, free: 412 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1316, allocations: 12.03 kB / 0.5462 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.662e-05/0.1316, allocations: 4.75 kB / 0.5462 GB, free: 396 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.748e-05/0.1317, allocations: 62.73 kB / 0.5463 GB, free: 324 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.912e-05/0.1318, allocations: 52.64 kB / 0.5463 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007041/0.1325, allocations: 411.4 kB / 0.5467 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.1325, allocations: 20.56 kB / 0.5468 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.1326, allocations: 24 kB / 0.5468 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005356/0.1331, allocations: 334.2 kB / 0.5471 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.1331, allocations: 7.938 kB / 0.5471 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.1332, allocations: 12 kB / 0.5471 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.1332, allocations: 8 kB / 0.5471 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003661/0.1336, allocations: 201.5 kB / 0.5473 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.1355, allocations: 1.479 MB / 0.5488 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00049/0.136, allocations: 202.3 kB / 0.5489 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.1361, allocations: 71.53 kB / 0.549 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.954e-05/0.1362, allocations: 0 / 0.549 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.1362, allocations: 46.5 kB / 0.5491 GB, free: 13.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.713e-06/0.1362, allocations: 0 / 0.5491 GB, free: 13.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001345/0.1376, allocations: 0.6984 MB / 0.5497 GB, free: 12.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.957e-05/0.1377, allocations: 132.5 kB / 0.5499 GB, free: 12.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004128/0.1381, allocations: 309.7 kB / 0.5502 GB, free: 12.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.1381, allocations: 30.08 kB / 0.5502 GB, free: 11.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.1383, allocations: 228.1 kB / 0.5504 GB, free: 11.76 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.46e-05/0.1384, allocations: 67.41 kB / 0.5505 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.19e-05/0.1384, allocations: 53.66 kB / 0.5505 GB, free: 11.63 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.1386, allocations: 342.8 kB / 0.5509 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.1387, allocations: 47.97 kB / 0.5509 GB, free: 11.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/0.1389, allocations: 152.8 kB / 0.551 GB, free: 11.05 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003179/0.1392, allocations: 227 kB / 0.5513 GB, free: 10.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1393, allocations: 0 / 0.5513 GB, free: 10.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004118/0.1397, allocations: 253.5 kB / 0.5515 GB, free: 10.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.1397, allocations: 4 kB / 0.5515 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.1397, allocations: 7.938 kB / 0.5515 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1397, allocations: 4 kB / 0.5515 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004243/0.1401, allocations: 91.77 kB / 0.5516 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001287/0.1414, allocations: 1.373 MB / 0.5529 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.1416, allocations: 15.95 kB / 0.553 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.1416, allocations: 11.94 kB / 0.553 GB, free: 8.887 MB / 414.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.000208/0.1418, allocations: 177.7 kB / 0.5531 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.399e-05/0.1419, allocations: 35.8 kB / 0.5532 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004201/0.1423, allocations: 182.4 kB / 0.5534 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1423, allocations: 4 kB / 0.5534 GB, free: 8.484 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.1423, allocations: 0 / 0.5534 GB, free: 8.484 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.1424, allocations: 3.984 kB / 0.5534 GB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.1434, allocations: 0.549 MB / 0.5539 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1434, allocations: 0 / 0.5539 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002598/0.1436, allocations: 39.98 kB / 0.5539 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1436, allocations: 0 / 0.5539 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.1437, allocations: 8 kB / 0.5539 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1437, allocations: 3.984 kB / 0.5539 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1437, allocations: 3.938 kB / 0.5539 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005786/0.1442, allocations: 497.5 kB / 0.5544 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.581e-05/0.1443, allocations: 108.9 kB / 0.5545 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.803e-05/0.1444, allocations: 8 kB / 0.5545 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.1446, allocations: 0 / 0.5545 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/0.1446, allocations: 19.92 kB / 0.5546 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.1446, allocations: 4 kB / 0.5546 GB, free: 7.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002662/0.1449, allocations: 231.2 kB / 0.5548 GB, free: 6.938 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1449, allocations: 0 / 0.5548 GB, free: 6.938 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004646/0.1454, allocations: 56 kB / 0.5548 GB, free: 6.883 MB / 414.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.00111/0.1465, allocations: 1.025 MB / 0.5558 GB, free: 5.824 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004323/0.1469, allocations: 161.6 kB / 0.556 GB, free: 5.668 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1469, allocations: 4 kB / 0.556 GB, free: 5.664 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.147, allocations: 68.72 kB / 0.5561 GB, free: 5.598 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008076/0.1478, allocations: 100 kB / 0.5562 GB, free: 5.504 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004495/0.1523, allocations: 3.271 MB / 0.5593 GB, free: 2.055 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005188/0.1529, allocations: 0.8029 MB / 0.5601 GB, free: 1.227 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002185/0.1531, allocations: 54.94 kB / 0.5602 GB, free: 1.172 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.1533, allocations: 111.4 kB / 0.5603 GB, free: 1.062 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1533, allocations: 0 / 0.5603 GB, free: 1.062 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02936/0.1826, allocations: 6.801 MB / 0.5669 GB, free: 10.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.874/9.057, allocations: 4 kB / 0.5669 GB, free: 10.4 MB / 430.1 MB " [Timeout remaining time 651] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.979923450970091] Failed to read output from testmodel.py, exit status != 0: 9.187094956985675 9.203623086 9.070105576 Calling exit ...