Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.001866/0.001866, allocations: 113 kB / 18.49 MB, free: 4.539 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.002284/0.002284, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.09 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.1883/0.1883, allocations: 38.51 MB / 349.4 MB, free: 2.574 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.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.002011/0.002011, allocations: 59.91 kB / 487.8 MB, free: 22.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.11, allocations: 62.42 MB / 0.5374 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005684/0.1157, allocations: 3.965 MB / 0.5412 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.1172, allocations: 0.9194 MB / 0.5421 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.1174, allocations: 15.88 kB / 0.5421 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.1176, allocations: 43.56 kB / 0.5422 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004546/0.118, allocations: 163.1 kB / 0.5423 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001886/0.1182, allocations: 91.81 kB / 0.5424 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004507/0.1187, allocations: 374.7 kB / 0.5428 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.1188, allocations: 71.72 kB / 0.5428 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003032/0.1191, allocations: 171.3 kB / 0.543 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003338/0.1195, allocations: 179.3 kB / 0.5432 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.469e-05/0.1195, allocations: 16 kB / 0.5432 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.173e-05/0.1195, allocations: 20 kB / 0.5432 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.1197, allocations: 79.73 kB / 0.5433 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.1198, allocations: 127.3 kB / 0.5434 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003343/0.1201, allocations: 258.8 kB / 0.5437 GB, free: 1.043 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1201, allocations: 4 kB / 0.5437 GB, free: 1.039 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1201, allocations: 0 / 0.5437 GB, free: 1.039 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1201, allocations: 0 / 0.5437 GB, free: 1.039 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009565/0.1211, allocations: 0.5619 MB / 0.5442 GB, free: 440 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1211, allocations: 8.031 kB / 0.5442 GB, free: 432 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.526e-05/0.1212, allocations: 12.62 kB / 0.5442 GB, free: 420 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.693e-05/0.1212, allocations: 54.72 kB / 0.5443 GB, free: 356 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.51e-05/0.1213, allocations: 36.75 kB / 0.5443 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005162/0.1218, allocations: 335.6 kB / 0.5446 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.1218, allocations: 12.44 kB / 0.5447 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.1219, allocations: 27.98 kB / 0.5447 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004258/0.1223, allocations: 274 kB / 0.5449 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.1223, allocations: 3.938 kB / 0.5449 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.1223, allocations: 8 kB / 0.545 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1223, allocations: 4 kB / 0.545 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002797/0.1226, allocations: 163.8 kB / 0.5451 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.124, allocations: 1.175 MB / 0.5463 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000161/0.1242, allocations: 77.16 kB / 0.5463 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.894e-05/0.1242, allocations: 29.78 kB / 0.5464 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.1243, allocations: 0 / 0.5464 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.792e-05/0.1243, allocations: 34.56 kB / 0.5464 GB, free: 13.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/0.1243, allocations: 0 / 0.5464 GB, free: 13.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008012/0.1251, allocations: 421.5 kB / 0.5468 GB, free: 13.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/0.1252, allocations: 81.11 kB / 0.5469 GB, free: 13.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.1255, allocations: 242.5 kB / 0.5471 GB, free: 13.18 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.1255, allocations: 29.7 kB / 0.5471 GB, free: 13.14 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.1257, allocations: 196 kB / 0.5473 GB, free: 12.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.647e-05/0.1257, allocations: 31.73 kB / 0.5474 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.022e-05/0.1258, allocations: 37.7 kB / 0.5474 GB, free: 12.87 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002928/0.1261, allocations: 334.8 kB / 0.5477 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.929e-05/0.1261, allocations: 32.02 kB / 0.5477 GB, free: 12.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.1263, allocations: 116.8 kB / 0.5478 GB, free: 12.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002308/0.1265, allocations: 164.7 kB / 0.548 GB, free: 12.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1265, allocations: 0 / 0.548 GB, free: 12.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003047/0.1268, allocations: 185.2 kB / 0.5482 GB, free: 11.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.1268, allocations: 7.938 kB / 0.5482 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.1268, allocations: 4 kB / 0.5482 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.1269, allocations: 4 kB / 0.5482 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.1271, allocations: 44.36 kB / 0.5482 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/0.1271, allocations: 7.984 kB / 0.5482 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.1272, allocations: 8 kB / 0.5483 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.1272, allocations: 16 kB / 0.5483 GB, free: 11.86 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001986/0.1274, allocations: 154.3 kB / 0.5484 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.084e-05/0.1275, allocations: 23.8 kB / 0.5484 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002336/0.1277, allocations: 95.33 kB / 0.5485 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1277, allocations: 0 / 0.5485 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.1277, allocations: 7.922 kB / 0.5485 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.257e-06/0.1277, allocations: 0 / 0.5485 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006583/0.1284, allocations: 435.9 kB / 0.549 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1284, allocations: 0 / 0.549 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.1285, allocations: 23.98 kB / 0.549 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1285, allocations: 0 / 0.549 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.1285, allocations: 0 / 0.549 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.319e-06/0.1285, allocations: 4 kB / 0.549 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.1285, allocations: 0 / 0.549 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003582/0.1289, allocations: 233 kB / 0.5492 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.129, allocations: 97 kB / 0.5493 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.682e-05/0.129, allocations: 0 / 0.5493 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.352e-05/0.1291, allocations: 4 kB / 0.5493 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.915e-05/0.1291, allocations: 11.92 kB / 0.5493 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.1291, allocations: 4 kB / 0.5493 GB, free: 10.67 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000191/0.1293, allocations: 178 kB / 0.5495 GB, free: 10.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1293, allocations: 0 / 0.5495 GB, free: 10.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003253/0.1296, allocations: 40 kB / 0.5495 GB, free: 10.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.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 (9): * Single equations (assignments): 8 * 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.0006485/0.1303, allocations: 0.7609 MB / 0.5503 GB, free: 9.668 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002101/0.1305, allocations: 87.77 kB / 0.5503 GB, free: 9.582 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1305, allocations: 0 / 0.5503 GB, free: 9.582 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.63e-05/0.1306, allocations: 23.94 kB / 0.5504 GB, free: 9.559 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005324/0.1311, allocations: 56.38 kB / 0.5504 GB, free: 9.508 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/0.134, allocations: 2.313 MB / 0.5527 GB, free: 7.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/0.1344, allocations: 0.7597 MB / 0.5534 GB, free: 6.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.1346, allocations: 30.27 kB / 0.5535 GB, free: 6.203 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.1347, allocations: 71.42 kB / 0.5535 GB, free: 6.133 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1347, allocations: 0 / 0.5535 GB, free: 6.133 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02257/0.1572, allocations: 4.206 MB / 0.5576 GB, free: 2.043 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.699/8.856, allocations: 12 kB / 0.5576 GB, free: 2.031 MB / 414.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.784418263996486] Failed to read output from testmodel.py, exit status != 0: 8.980606892961077 8.996012989 8.872909616 Calling exit ...