Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.001762/0.001762, allocations: 124.2 kB / 17.78 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.002024/0.002024, allocations: 189.2 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.47/1.47, allocations: 225.6 MB / 249.1 MB, free: 3.594 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.185/0.185, allocations: 38.51 MB / 342.5 MB, free: 8.027 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.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 66.39 kB / 478.6 MB, free: 33.5 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1117, allocations: 61.25 MB / 0.5272 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006753/0.1184, allocations: 4.437 MB / 0.5316 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002939/0.1214, allocations: 1.535 MB / 0.5331 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002706/0.1216, allocations: 11.94 kB / 0.5331 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.1226, allocations: 290.7 kB / 0.5333 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006525/0.1233, allocations: 290.7 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007405/0.124, allocations: 243.4 kB / 0.5339 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007827/0.1248, allocations: 0.6079 MB / 0.5344 GB, free: 9.918 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003974/0.1252, allocations: 183.8 kB / 0.5346 GB, free: 9.734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004786/0.1257, allocations: 279 kB / 0.5349 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006202/0.1263, allocations: 398.7 kB / 0.5353 GB, free: 9.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.029e-05/0.1264, allocations: 40 kB / 0.5353 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000491/0.1269, allocations: 231.6 kB / 0.5355 GB, free: 8.805 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002734/0.1272, allocations: 235.4 kB / 0.5358 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003019/0.1275, allocations: 254.7 kB / 0.536 GB, free: 8.324 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008819/0.1283, allocations: 0.6733 MB / 0.5367 GB, free: 7.648 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1283, allocations: 4 kB / 0.5367 GB, free: 7.645 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1283, allocations: 0 / 0.5367 GB, free: 7.645 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.1284, allocations: 0 / 0.5367 GB, free: 7.645 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.00152/0.1299, allocations: 0.7847 MB / 0.5374 GB, free: 6.809 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.1299, allocations: 11.89 kB / 0.5374 GB, free: 6.797 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.13, allocations: 82.7 kB / 0.5375 GB, free: 6.707 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006523/0.1307, allocations: 96.55 kB / 0.5376 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008368/0.1315, allocations: 427.4 kB / 0.538 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.537e-05/0.1316, allocations: 33.36 kB / 0.538 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.1317, allocations: 47.92 kB / 0.5381 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.1328, allocations: 0.6954 MB / 0.5388 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.1328, allocations: 7.938 kB / 0.5388 GB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.513e-05/0.1329, allocations: 15.98 kB / 0.5388 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002079/0.1331, allocations: 72.94 kB / 0.5389 GB, free: 5.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.1342, allocations: 0.6596 MB / 0.5395 GB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004172/0.1384, allocations: 2.651 MB / 0.5421 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005686/0.139, allocations: 293.3 kB / 0.5424 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.1393, allocations: 201.4 kB / 0.5426 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.791e-05/0.1393, allocations: 15.86 kB / 0.5426 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/0.1393, allocations: 38.56 kB / 0.5426 GB, free: 1.219 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.615e-06/0.1393, allocations: 0 / 0.5426 GB, free: 1.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.002178/0.1415, allocations: 1.299 MB / 0.5439 GB, free: 15.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.1416, allocations: 89.11 kB / 0.544 GB, free: 15.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003248/0.1419, allocations: 291.2 kB / 0.5442 GB, free: 15.47 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.1419, allocations: 33.7 kB / 0.5443 GB, free: 15.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002018/0.1421, allocations: 260.4 kB / 0.5445 GB, free: 15.17 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.1423, allocations: 142.7 kB / 0.5447 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.1424, allocations: 86.08 kB / 0.5447 GB, free: 14.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.1426, allocations: 350.7 kB / 0.5451 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002904/0.1429, allocations: 188.9 kB / 0.5453 GB, free: 14.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004124/0.1433, allocations: 329.3 kB / 0.5456 GB, free: 14.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007487/0.144, allocations: 0.5506 MB / 0.5461 GB, free: 13.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.144, allocations: 4 kB / 0.5461 GB, free: 13.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001302/0.1453, allocations: 0.6745 MB / 0.5468 GB, free: 12.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.1454, allocations: 4 kB / 0.5468 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008627/0.1462, allocations: 495.4 kB / 0.5473 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000443/0.1467, allocations: 113.5 kB / 0.5474 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003233/0.147, allocations: 83.88 kB / 0.5474 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003284/0.1503, allocations: 3.266 MB / 0.5506 GB, free: 8.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002852/0.1506, allocations: 28.03 kB / 0.5507 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.304e-05/0.1506, allocations: 16 kB / 0.5507 GB, free: 8.441 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002864/0.1509, allocations: 213.6 kB / 0.5509 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.58e-05/0.151, allocations: 35.77 kB / 0.5509 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007764/0.1518, allocations: 464.7 kB / 0.5514 GB, free: 7.727 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.496e-05/0.1518, allocations: 15.98 kB / 0.5514 GB, free: 7.711 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1518, allocations: 3.938 kB / 0.5514 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1518, allocations: 0 / 0.5514 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.1534, allocations: 1.015 MB / 0.5524 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.1534, allocations: 3.984 kB / 0.5524 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003677/0.1537, allocations: 63.95 kB / 0.5524 GB, free: 6.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.1538, allocations: 7.938 kB / 0.5524 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.825e-05/0.1538, allocations: 19.98 kB / 0.5525 GB, free: 6.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1538, allocations: 0 / 0.5525 GB, free: 6.535 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.1538, allocations: 4 kB / 0.5525 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.1548, allocations: 0.7439 MB / 0.5532 GB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.155, allocations: 144.8 kB / 0.5533 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.907e-05/0.1551, allocations: 15.98 kB / 0.5533 GB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.1553, allocations: 7.984 kB / 0.5533 GB, free: 5.578 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.1553, allocations: 27.91 kB / 0.5534 GB, free: 5.551 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-05/0.1553, allocations: 4 kB / 0.5534 GB, free: 5.547 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002214/0.1555, allocations: 215 kB / 0.5536 GB, free: 5.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1555, allocations: 0 / 0.5536 GB, free: 5.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005148/0.1561, allocations: 107.9 kB / 0.5537 GB, free: 5.234 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.001498/0.1576, allocations: 1.331 MB / 0.555 GB, free: 3.867 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.1587, allocations: 0.6818 MB / 0.5557 GB, free: 3.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1587, allocations: 0 / 0.5557 GB, free: 3.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.159, allocations: 192.9 kB / 0.5558 GB, free: 2.973 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005215/0.1595, allocations: 75 kB / 0.5559 GB, free: 2.902 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006209/0.1657, allocations: 4.392 MB / 0.5602 GB, free: 14.28 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.1663, allocations: 0.8782 MB / 0.5611 GB, free: 13.38 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003061/0.1666, allocations: 99.14 kB / 0.5611 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002109/0.1668, allocations: 151.3 kB / 0.5613 GB, free: 13.14 MB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1668, allocations: 0 / 0.5613 GB, free: 13.14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03924/0.2061, allocations: 8.292 MB / 0.5694 GB, free: 4.984 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.6, allocations: 8.938 kB / 0.5694 GB, free: 4.977 MB / 430.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.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: 13.627267798874527]