Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001778/0.001778, 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.00209/0.00209, 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.614/1.614, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1884/0.1884, allocations: 38.5 MB / 349.4 MB, free: 2.59 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_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.002229/0.002229, allocations: 63.89 kB / 487.8 MB, free: 22.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1245, allocations: 62.41 MB / 0.5374 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.007409/0.1319, allocations: 3.957 MB / 0.5412 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002399/0.1343, allocations: 0.9194 MB / 0.5421 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003189/0.1347, allocations: 15.88 kB / 0.5421 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002613/0.1349, allocations: 47.56 kB / 0.5422 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007778/0.1357, allocations: 175.1 kB / 0.5423 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002738/0.136, allocations: 79.83 kB / 0.5424 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006716/0.1366, allocations: 378.7 kB / 0.5428 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/0.1369, allocations: 64.55 kB / 0.5428 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004855/0.1374, allocations: 183.2 kB / 0.543 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004374/0.1378, allocations: 171.4 kB / 0.5432 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.307e-05/0.1379, allocations: 16 kB / 0.5432 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.45e-05/0.138, allocations: 20 kB / 0.5432 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.1381, allocations: 83.72 kB / 0.5433 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001888/0.1383, allocations: 123.4 kB / 0.5434 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004064/0.1387, allocations: 258.8 kB / 0.5437 GB, free: 1.055 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1387, allocations: 0 / 0.5437 GB, free: 1.055 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1387, allocations: 7.875 kB / 0.5437 GB, free: 1.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.1387, allocations: 0 / 0.5437 GB, free: 1.047 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.001086/0.1398, allocations: 0.5659 MB / 0.5442 GB, free: 444 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.1398, allocations: 12.03 kB / 0.5442 GB, free: 432 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.972e-05/0.1399, allocations: 4.625 kB / 0.5442 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.227e-05/0.1399, allocations: 54.73 kB / 0.5443 GB, free: 364 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.431e-05/0.14, allocations: 28.75 kB / 0.5443 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005668/0.1406, allocations: 339.5 kB / 0.5446 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.1406, allocations: 20.38 kB / 0.5447 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.367e-05/0.1406, allocations: 20 kB / 0.5447 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004401/0.1411, allocations: 270 kB / 0.5449 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.1411, allocations: 0 / 0.5449 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.1411, allocations: 12 kB / 0.5449 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.1411, allocations: 4 kB / 0.545 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002969/0.1414, allocations: 163.8 kB / 0.5451 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.1429, allocations: 1.167 MB / 0.5462 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001835/0.1431, allocations: 73.11 kB / 0.5463 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.691e-05/0.1432, allocations: 37.81 kB / 0.5464 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.1432, allocations: 0 / 0.5464 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.1432, allocations: 34.5 kB / 0.5464 GB, free: 14.01 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.1432, allocations: 4 kB / 0.5464 GB, free: 14 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008188/0.1441, allocations: 425.5 kB / 0.5468 GB, free: 13.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/0.1441, allocations: 77.11 kB / 0.5469 GB, free: 13.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.1444, allocations: 250.5 kB / 0.5471 GB, free: 13.18 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.1444, allocations: 25.7 kB / 0.5471 GB, free: 13.15 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.1446, allocations: 196 kB / 0.5473 GB, free: 12.96 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/0.1446, allocations: 31.73 kB / 0.5474 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.905e-05/0.1446, allocations: 33.72 kB / 0.5474 GB, free: 12.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.1448, allocations: 330.8 kB / 0.5477 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.532e-05/0.1449, allocations: 31.98 kB / 0.5477 GB, free: 12.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.145, allocations: 123.6 kB / 0.5478 GB, free: 12.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.1452, allocations: 160.7 kB / 0.548 GB, free: 12.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1452, allocations: 0 / 0.548 GB, free: 12.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002856/0.1455, allocations: 197.2 kB / 0.5482 GB, free: 11.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.1455, allocations: 7.938 kB / 0.5482 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1455, allocations: 4 kB / 0.5482 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.1455, allocations: 4 kB / 0.5482 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.1457, allocations: 40.36 kB / 0.5482 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.1457, allocations: 15.94 kB / 0.5483 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.1458, allocations: 8 kB / 0.5483 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.1458, allocations: 8 kB / 0.5483 GB, free: 11.87 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.0001486/0.146, allocations: 153.6 kB / 0.5484 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.131e-05/0.146, allocations: 27.73 kB / 0.5484 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001728/0.1462, allocations: 103.3 kB / 0.5485 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1462, allocations: 0 / 0.5485 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1462, allocations: 0 / 0.5485 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1462, allocations: 0 / 0.5485 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005082/0.1467, allocations: 431.2 kB / 0.549 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1467, allocations: 0 / 0.549 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.1468, allocations: 19.98 kB / 0.549 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.1468, allocations: 0 / 0.549 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.1469, allocations: 4 kB / 0.549 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.1469, allocations: 4 kB / 0.549 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1469, allocations: 0 / 0.549 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002819/0.1471, allocations: 233 kB / 0.5492 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.009e-05/0.1472, allocations: 96.95 kB / 0.5493 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.1473, allocations: 4 kB / 0.5493 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.009e-05/0.1473, allocations: 4.438 kB / 0.5493 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.258e-05/0.1474, allocations: 0 / 0.5493 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.1474, allocations: 4 kB / 0.5493 GB, free: 10.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001901/0.1476, allocations: 182 kB / 0.5495 GB, free: 10.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1476, allocations: 0 / 0.5495 GB, free: 10.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003336/0.1479, allocations: 40 kB / 0.5495 GB, free: 10.48 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.0006776/0.1486, allocations: 0.7609 MB / 0.5503 GB, free: 9.684 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002193/0.1488, allocations: 83.95 kB / 0.5503 GB, free: 9.602 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1488, allocations: 0 / 0.5503 GB, free: 9.602 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.821e-05/0.1489, allocations: 35.86 kB / 0.5504 GB, free: 9.566 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.1494, allocations: 68.02 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.003016/0.1524, allocations: 2.297 MB / 0.5527 GB, free: 7.035 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000444/0.1528, allocations: 0.7636 MB / 0.5534 GB, free: 6.246 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.1529, allocations: 30.28 kB / 0.5535 GB, free: 6.215 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.153, allocations: 71.41 kB / 0.5535 GB, free: 6.145 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.153, allocations: 0 / 0.5535 GB, free: 6.145 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02364/0.1767, allocations: 4.213 MB / 0.5576 GB, free: 2.062 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.597/8.774, allocations: 8.047 kB / 0.5577 GB, free: 2.055 MB / 414.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.881611768039875]