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.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.001637/0.001637, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001917/0.001917, allocations: 218.9 kB / 21.46 MB, free: 1.605 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.493/1.493, allocations: 230.6 MB / 254.8 MB, free: 14.88 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.1839/0.1839, allocations: 38.5 MB / 349.4 MB, free: 2.582 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.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.002022/0.002022, allocations: 67.91 kB / 487.8 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1133, allocations: 62.42 MB / 0.5374 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006595/0.1199, allocations: 4.449 MB / 0.5417 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00298/0.1229, allocations: 1.585 MB / 0.5433 GB, free: 1.488 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002259/0.1231, allocations: 19.81 kB / 0.5433 GB, free: 1.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009361/0.1241, allocations: 298.7 kB / 0.5436 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007362/0.1248, allocations: 286.6 kB / 0.5438 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007032/0.1255, allocations: 243.4 kB / 0.5441 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007184/0.1262, allocations: 0.6079 MB / 0.5447 GB, free: 48 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003777/0.1266, allocations: 191.8 kB / 0.5448 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004811/0.1271, allocations: 287 kB / 0.5451 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005731/0.1277, allocations: 390.8 kB / 0.5455 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.341e-05/0.1277, allocations: 40 kB / 0.5455 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005414/0.1283, allocations: 243.6 kB / 0.5458 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000277/0.1286, allocations: 235.4 kB / 0.546 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002811/0.1288, allocations: 254.8 kB / 0.5462 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008848/0.1297, allocations: 0.6694 MB / 0.5469 GB, free: 13.76 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1297, allocations: 3.938 kB / 0.5469 GB, free: 13.76 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1297, allocations: 7.938 kB / 0.5469 GB, free: 13.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1297, allocations: 3.938 kB / 0.5469 GB, free: 13.75 MB / 414.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.001721/0.1315, allocations: 0.7848 MB / 0.5477 GB, free: 12.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.1315, allocations: 8.031 kB / 0.5477 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.804e-05/0.1315, allocations: 13.19 kB / 0.5477 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001135/0.1317, allocations: 90.69 kB / 0.5478 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008755/0.1325, allocations: 124.5 kB / 0.5479 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007128/0.1332, allocations: 419.4 kB / 0.5483 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.1333, allocations: 29.12 kB / 0.5483 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.1334, allocations: 51.91 kB / 0.5484 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.1345, allocations: 0.6992 MB / 0.549 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.1346, allocations: 0 / 0.549 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.357e-05/0.1346, allocations: 16 kB / 0.5491 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002397/0.1349, allocations: 64.95 kB / 0.5491 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.136, allocations: 0.6713 MB / 0.5498 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003942/0.1399, allocations: 2.647 MB / 0.5524 GB, free: 7.859 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.1405, allocations: 305.2 kB / 0.5527 GB, free: 7.543 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003077/0.1408, allocations: 193.7 kB / 0.5528 GB, free: 7.348 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.971e-05/0.1408, allocations: 11.98 kB / 0.5529 GB, free: 7.336 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.1409, allocations: 34.56 kB / 0.5529 GB, free: 7.293 MB / 414.1 MB Notification: Performance of pre-optimization done (n=39): time 2.555e-06/0.1409, allocations: 0 / 0.5529 GB, free: 7.293 MB / 414.1 MB Notification: Performance of matching and sorting (n=40): time 0.002274/0.1432, allocations: 1.323 MB / 0.5542 GB, free: 5.918 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/0.1432, allocations: 85.23 kB / 0.5543 GB, free: 5.816 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003633/0.1436, allocations: 291.3 kB / 0.5545 GB, free: 5.527 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.311e-05/0.1436, allocations: 33.69 kB / 0.5546 GB, free: 5.488 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.1438, allocations: 252.2 kB / 0.5548 GB, free: 5.234 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.144, allocations: 146.7 kB / 0.5549 GB, free: 5.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.1441, allocations: 86.08 kB / 0.555 GB, free: 5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1443, allocations: 350.7 kB / 0.5554 GB, free: 4.648 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/0.1446, allocations: 188.9 kB / 0.5555 GB, free: 4.465 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004197/0.145, allocations: 329.2 kB / 0.5559 GB, free: 4.082 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007853/0.1458, allocations: 0.5584 MB / 0.5564 GB, free: 3.465 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1458, allocations: 0 / 0.5564 GB, free: 3.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001333/0.1471, allocations: 0.6821 MB / 0.5571 GB, free: 2.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.1471, allocations: 4 kB / 0.5571 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009158/0.1481, allocations: 487.5 kB / 0.5575 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004661/0.1485, allocations: 113.9 kB / 0.5576 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003313/0.1489, allocations: 83.81 kB / 0.5577 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003437/0.1523, allocations: 3.266 MB / 0.5609 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.1526, allocations: 23.97 kB / 0.5609 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.397e-05/0.1526, allocations: 16 kB / 0.561 GB, free: 14.5 MB / 430.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.0002779/0.1529, allocations: 210.4 kB / 0.5612 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.204e-05/0.153, allocations: 39.7 kB / 0.5612 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008003/0.1538, allocations: 476.5 kB / 0.5616 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.287e-05/0.1538, allocations: 12 kB / 0.5617 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1538, allocations: 3.938 kB / 0.5617 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1538, allocations: 7.984 kB / 0.5617 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001556/0.1554, allocations: 1.007 MB / 0.5627 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.1554, allocations: 0 / 0.5627 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000366/0.1557, allocations: 71.83 kB / 0.5627 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1557, allocations: 0 / 0.5627 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.1558, allocations: 11.98 kB / 0.5627 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.1558, allocations: 8 kB / 0.5627 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1558, allocations: 0 / 0.5627 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.1568, allocations: 0.7476 MB / 0.5635 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001588/0.157, allocations: 140.8 kB / 0.5636 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.648e-05/0.157, allocations: 11.98 kB / 0.5636 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.1572, allocations: 19.97 kB / 0.5636 GB, free: 11.62 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.149e-05/0.1573, allocations: 19.97 kB / 0.5637 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.1573, allocations: 8 kB / 0.5637 GB, free: 11.6 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000221/0.1575, allocations: 207.1 kB / 0.5639 GB, free: 11.39 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1575, allocations: 0 / 0.5639 GB, free: 11.39 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005356/0.1581, allocations: 108 kB / 0.564 GB, free: 11.29 MB / 430.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.001551/0.1596, allocations: 1.332 MB / 0.5653 GB, free: 9.922 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001164/0.1608, allocations: 0.6742 MB / 0.5659 GB, free: 9.223 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1608, allocations: 4.188 kB / 0.5659 GB, free: 9.219 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003493/0.1612, allocations: 199.8 kB / 0.5661 GB, free: 9.023 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005111/0.1617, allocations: 59.36 kB / 0.5662 GB, free: 8.969 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006374/0.168, allocations: 4.409 MB / 0.5705 GB, free: 4.332 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006029/0.1686, allocations: 0.8743 MB / 0.5713 GB, free: 3.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000309/0.1689, allocations: 111.2 kB / 0.5714 GB, free: 3.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.1692, allocations: 139.4 kB / 0.5716 GB, free: 3.184 MB / 430.1 MB Notification: Performance of SimCode: time 1.423e-06/0.1692, allocations: 0 / 0.5716 GB, free: 3.184 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03326/0.2025, allocations: 8.324 MB / 0.5797 GB, free: 11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/10.98, allocations: 3.938 kB / 0.5797 GB, free: 11 MB / 446.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/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.278614119975828]