Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.001759/0.001759, 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.002075/0.002075, 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.556/1.556, allocations: 225.6 MB / 249.1 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1835/0.1835, allocations: 38.51 MB / 342.5 MB, free: 8.078 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-master/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.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 67.64 kB / 478.6 MB, free: 33.63 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1058, allocations: 61.25 MB / 0.5272 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.008378/0.1142, allocations: 5.751 MB / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003655/0.1178, allocations: 2.138 MB / 0.5349 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002964/0.1181, allocations: 19.88 kB / 0.5349 GB, free: 9.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005954/0.1187, allocations: 162.8 kB / 0.5351 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001083/0.1198, allocations: 425.7 kB / 0.5355 GB, free: 8.875 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007024/0.1205, allocations: 247.4 kB / 0.5357 GB, free: 8.633 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001279/0.1218, allocations: 0.8409 MB / 0.5366 GB, free: 7.789 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005987/0.1224, allocations: 420.8 kB / 0.537 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005617/0.123, allocations: 350.6 kB / 0.5373 GB, free: 7.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005297/0.1235, allocations: 366.5 kB / 0.5376 GB, free: 6.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.083e-05/0.1236, allocations: 56 kB / 0.5377 GB, free: 6.613 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.1238, allocations: 104 kB / 0.5378 GB, free: 6.512 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002158/0.124, allocations: 179.5 kB / 0.538 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003616/0.1244, allocations: 310.5 kB / 0.5383 GB, free: 6.031 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.1254, allocations: 0.7353 MB / 0.539 GB, free: 5.293 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1254, allocations: 4 kB / 0.539 GB, free: 5.289 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1254, allocations: 0 / 0.539 GB, free: 5.289 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.1254, allocations: 0 / 0.539 GB, free: 5.289 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.00176/0.1272, allocations: 0.909 MB / 0.5399 GB, free: 4.324 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.1272, allocations: 15.89 kB / 0.5399 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.1273, allocations: 82.7 kB / 0.54 GB, free: 4.219 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.1275, allocations: 68.52 kB / 0.54 GB, free: 4.152 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009593/0.1284, allocations: 0.5217 MB / 0.5405 GB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.863e-05/0.1285, allocations: 37 kB / 0.5406 GB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.1286, allocations: 47.94 kB / 0.5406 GB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008778/0.1295, allocations: 0.5134 MB / 0.5411 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.1295, allocations: 4 kB / 0.5411 GB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.497e-05/0.1295, allocations: 20 kB / 0.5411 GB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.432e-05/0.1296, allocations: 16.98 kB / 0.5412 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005943/0.1302, allocations: 335.7 kB / 0.5415 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002781/0.133, allocations: 2.066 MB / 0.5435 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004539/0.1334, allocations: 219.7 kB / 0.5437 GB, free: 164 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.1336, allocations: 74.69 kB / 0.5438 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.1336, allocations: 11.92 kB / 0.5438 GB, free: 68 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003343/0.1339, allocations: 172.8 kB / 0.544 GB, free: 15.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.1339, allocations: 0 / 0.544 GB, free: 15.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.001784/0.1357, allocations: 0.9368 MB / 0.5449 GB, free: 14.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.91e-05/0.1358, allocations: 140.7 kB / 0.545 GB, free: 14.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005286/0.1364, allocations: 433.8 kB / 0.5454 GB, free: 14.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.1364, allocations: 29.7 kB / 0.5454 GB, free: 14.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002481/0.1366, allocations: 304.2 kB / 0.5457 GB, free: 13.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.1367, allocations: 91.22 kB / 0.5458 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.1369, allocations: 78.08 kB / 0.5459 GB, free: 13.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.1371, allocations: 354.7 kB / 0.5462 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001654/0.1372, allocations: 88.83 kB / 0.5463 GB, free: 13.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.1375, allocations: 229.4 kB / 0.5465 GB, free: 13.05 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004987/0.138, allocations: 322.3 kB / 0.5469 GB, free: 12.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.138, allocations: 0 / 0.5469 GB, free: 12.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009248/0.139, allocations: 449.7 kB / 0.5473 GB, free: 12.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.139, allocations: 7.984 kB / 0.5473 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.139, allocations: 4 kB / 0.5473 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004253/0.1394, allocations: 97.19 kB / 0.5474 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.1397, allocations: 71.84 kB / 0.5475 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002424/0.1421, allocations: 1.821 MB / 0.5492 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.1424, allocations: 28.05 kB / 0.5493 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.394e-05/0.1425, allocations: 20 kB / 0.5493 GB, free: 10.04 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003067/0.1428, allocations: 205.6 kB / 0.5495 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.307e-05/0.1428, allocations: 51.66 kB / 0.5495 GB, free: 9.781 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006324/0.1435, allocations: 277.3 kB / 0.5498 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1435, allocations: 4 kB / 0.5498 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1435, allocations: 8 kB / 0.5498 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.1435, allocations: 3.984 kB / 0.5498 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.1448, allocations: 0.7683 MB / 0.5506 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.1448, allocations: 7.938 kB / 0.5506 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.145, allocations: 51.91 kB / 0.5506 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002461/0.1453, allocations: 52.8 kB / 0.5507 GB, free: 8.547 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.1453, allocations: 7.984 kB / 0.5507 GB, free: 8.539 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001486/0.1468, allocations: 1.539 MB / 0.5522 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1468, allocations: 0 / 0.5522 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007523/0.1476, allocations: 478 kB / 0.5526 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.1477, allocations: 140.8 kB / 0.5528 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.143e-05/0.1478, allocations: 4 kB / 0.5528 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.148, allocations: 12 kB / 0.5528 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.69e-05/0.1481, allocations: 23.91 kB / 0.5528 GB, free: 6.172 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/0.1481, allocations: 11.98 kB / 0.5528 GB, free: 6.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003704/0.1485, allocations: 295.1 kB / 0.5531 GB, free: 5.879 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1485, allocations: 0 / 0.5531 GB, free: 5.879 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005564/0.149, allocations: 127.9 kB / 0.5532 GB, free: 5.754 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002418/0.1514, allocations: 1.303 MB / 0.5545 GB, free: 4.578 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008533/0.1523, allocations: 391.7 kB / 0.5549 GB, free: 4.184 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1523, allocations: 0 / 0.5549 GB, free: 4.184 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004059/0.1527, allocations: 238.5 kB / 0.5551 GB, free: 3.938 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007144/0.1534, allocations: 133.7 kB / 0.5552 GB, free: 3.812 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006384/0.1598, allocations: 4.242 MB / 0.5594 GB, free: 15.35 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.1604, allocations: 0.8777 MB / 0.5602 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002246/0.1606, allocations: 64.23 kB / 0.5603 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.1608, allocations: 179.3 kB / 0.5604 GB, free: 14.21 MB / 430.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1608, allocations: 4 kB / 0.5604 GB, free: 14.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04589/0.2067, allocations: 11.63 MB / 0.5718 GB, free: 2.645 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.04, allocations: 4.641 kB / 0.5718 GB, free: 2.641 MB / 430.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.271024574059993] Failed to read output from testmodel.py, exit status != 0: 13.200010045897216 13.218146166 13.089537781 Calling exit ...