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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 121.4 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 225.6 MB / 249.1 MB, free: 3.637 MB / 190.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.1951/0.1951, allocations: 38.51 MB / 342.5 MB, free: 8.047 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 69.64 kB / 478.6 MB, free: 33.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.113, allocations: 61.25 MB / 0.5272 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007225/0.1203, allocations: 4.573 MB / 0.5317 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002949/0.1232, allocations: 1.503 MB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003643/0.1236, allocations: 19.88 kB / 0.5332 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005176/0.1241, allocations: 119.2 kB / 0.5333 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007629/0.1249, allocations: 278.3 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003044/0.1252, allocations: 115.8 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007446/0.1259, allocations: 0.4981 MB / 0.5341 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002494/0.1262, allocations: 127.9 kB / 0.5343 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002978/0.1265, allocations: 203.1 kB / 0.5345 GB, free: 9.938 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003181/0.1268, allocations: 215.1 kB / 0.5347 GB, free: 9.727 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.183e-05/0.1268, allocations: 28 kB / 0.5347 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.656e-05/0.1269, allocations: 24 kB / 0.5347 GB, free: 9.676 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.127, allocations: 103.7 kB / 0.5348 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001907/0.1272, allocations: 183 kB / 0.535 GB, free: 9.395 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005283/0.1277, allocations: 382.3 kB / 0.5353 GB, free: 9.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1277, allocations: 4 kB / 0.5354 GB, free: 9.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.1277, allocations: 4 kB / 0.5354 GB, free: 9.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.1277, allocations: 0 / 0.5354 GB, free: 9.012 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.001196/0.1289, allocations: 0.6707 MB / 0.536 GB, free: 8.293 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.129, allocations: 11.89 kB / 0.536 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.026e-05/0.1291, allocations: 70.67 kB / 0.5361 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.477e-05/0.1291, allocations: 40.7 kB / 0.5361 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007496/0.1299, allocations: 399.8 kB / 0.5365 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.1299, allocations: 20.56 kB / 0.5365 GB, free: 7.715 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.718e-05/0.13, allocations: 31.95 kB / 0.5366 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005169/0.1305, allocations: 338.2 kB / 0.5369 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.1305, allocations: 0 / 0.5369 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.1305, allocations: 12 kB / 0.5369 GB, free: 7.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.1305, allocations: 8 kB / 0.5369 GB, free: 7.297 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003544/0.1309, allocations: 201.5 kB / 0.5371 GB, free: 7.098 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.1327, allocations: 1.49 MB / 0.5385 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00044/0.1331, allocations: 194.3 kB / 0.5387 GB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.1333, allocations: 75.53 kB / 0.5388 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.1333, allocations: 7.938 kB / 0.5388 GB, free: 5.191 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.1333, allocations: 42.5 kB / 0.5389 GB, free: 5.141 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.814e-06/0.1333, allocations: 4 kB / 0.5389 GB, free: 5.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001212/0.1345, allocations: 0.6929 MB / 0.5395 GB, free: 4.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.198e-05/0.1346, allocations: 136.5 kB / 0.5397 GB, free: 4.227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.135, allocations: 317.7 kB / 0.54 GB, free: 3.906 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.135, allocations: 29.7 kB / 0.54 GB, free: 3.871 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.1352, allocations: 216.5 kB / 0.5402 GB, free: 3.656 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.505e-05/0.1352, allocations: 79.41 kB / 0.5403 GB, free: 3.578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.669e-05/0.1353, allocations: 53.64 kB / 0.5403 GB, free: 3.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.1355, allocations: 342.8 kB / 0.5407 GB, free: 3.176 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.1356, allocations: 47.97 kB / 0.5407 GB, free: 3.129 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.1358, allocations: 152.8 kB / 0.5408 GB, free: 2.934 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.1361, allocations: 226.5 kB / 0.5411 GB, free: 2.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1361, allocations: 0 / 0.5411 GB, free: 2.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000411/0.1365, allocations: 249.5 kB / 0.5413 GB, free: 2.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.1365, allocations: 12.09 kB / 0.5413 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1365, allocations: 0 / 0.5413 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.1366, allocations: 11.94 kB / 0.5413 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000401/0.137, allocations: 79.89 kB / 0.5414 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.138, allocations: 1.373 MB / 0.5427 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.1382, allocations: 8 kB / 0.5427 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.1382, allocations: 8 kB / 0.5428 GB, free: 0.793 MB / 398.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.0002136/0.1385, allocations: 173.8 kB / 0.5429 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.74e-05/0.1386, allocations: 35.77 kB / 0.543 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003454/0.1389, allocations: 186.5 kB / 0.5431 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.1389, allocations: 4 kB / 0.5431 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.1389, allocations: 0 / 0.5431 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1389, allocations: 0 / 0.5431 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009356/0.1398, allocations: 0.5491 MB / 0.5437 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.1399, allocations: 4 kB / 0.5437 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002474/0.1401, allocations: 35.98 kB / 0.5437 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1401, allocations: 0 / 0.5437 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.1401, allocations: 8 kB / 0.5437 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1401, allocations: 3.938 kB / 0.5437 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.178e-06/0.1401, allocations: 11.92 kB / 0.5437 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005266/0.1407, allocations: 497.5 kB / 0.5442 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.768e-05/0.1408, allocations: 109 kB / 0.5443 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.82e-05/0.1408, allocations: 7.984 kB / 0.5443 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.141, allocations: 11.94 kB / 0.5443 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.419e-05/0.141, allocations: 19.86 kB / 0.5444 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.1411, allocations: 8 kB / 0.5444 GB, free: 15.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000286/0.1413, allocations: 227.2 kB / 0.5446 GB, free: 14.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1413, allocations: 0 / 0.5446 GB, free: 14.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004435/0.1418, allocations: 60 kB / 0.5446 GB, free: 14.77 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.0008899/0.1427, allocations: 1.027 MB / 0.5456 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004195/0.1431, allocations: 150.3 kB / 0.5458 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1431, allocations: 0 / 0.5458 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.1432, allocations: 68.78 kB / 0.5458 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007422/0.144, allocations: 92.62 kB / 0.5459 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004304/0.1483, allocations: 3.283 MB / 0.5491 GB, free: 9.957 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.1487, allocations: 0.8029 MB / 0.5499 GB, free: 9.129 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001938/0.1489, allocations: 50.94 kB / 0.55 GB, free: 9.078 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.1491, allocations: 119.4 kB / 0.5501 GB, free: 8.961 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1491, allocations: 0 / 0.5501 GB, free: 8.961 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03338/0.1825, allocations: 6.757 MB / 0.5567 GB, free: 2.324 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.493/8.675, allocations: 3.266 kB / 0.5567 GB, free: 2.324 MB / 414.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.478043479844928] Failed to read output from testmodel.py, exit status != 0: 8.74999513104558 8.772701622 8.64069753 Calling exit ...