Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.001908/0.001908, allocations: 121 kB / 18.5 MB, free: 4.562 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.003083/0.003083, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.527/1.527, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.1901/0.1901, allocations: 38.5 MB / 349.4 MB, free: 2.625 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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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: 63.91 kB / 487.8 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1142, allocations: 62.42 MB / 0.5374 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005997/0.1202, allocations: 4.113 MB / 0.5414 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.1218, allocations: 0.9349 MB / 0.5423 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.1219, allocations: 19.81 kB / 0.5423 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002081/0.1221, allocations: 47.56 kB / 0.5424 GB, free: 2.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005231/0.1227, allocations: 190.9 kB / 0.5425 GB, free: 2.223 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.1229, allocations: 83.89 kB / 0.5426 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005014/0.1234, allocations: 402.5 kB / 0.543 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002619/0.1237, allocations: 106.2 kB / 0.5431 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004106/0.1241, allocations: 183.2 kB / 0.5433 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003767/0.1244, allocations: 195.2 kB / 0.5435 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.535e-05/0.1245, allocations: 23.94 kB / 0.5435 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.837e-05/0.1245, allocations: 20 kB / 0.5435 GB, free: 1.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.1247, allocations: 91.72 kB / 0.5436 GB, free: 1.141 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.1249, allocations: 139.3 kB / 0.5437 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004593/0.1253, allocations: 286.7 kB / 0.544 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1253, allocations: 3.938 kB / 0.544 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1253, allocations: 4 kB / 0.544 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.1253, allocations: 0 / 0.544 GB, free: 0.7148 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.00121/0.1265, allocations: 0.5969 MB / 0.5446 GB, free: 68 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.1266, allocations: 12.03 kB / 0.5446 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.233e-05/0.1266, allocations: 4.625 kB / 0.5446 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.1267, allocations: 66.73 kB / 0.5447 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.131e-05/0.1268, allocations: 32.75 kB / 0.5447 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005541/0.1273, allocations: 346.7 kB / 0.545 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.1274, allocations: 16.44 kB / 0.5451 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.116e-05/0.1274, allocations: 24 kB / 0.5451 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005201/0.1279, allocations: 290.8 kB / 0.5454 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.1279, allocations: 4 kB / 0.5454 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/0.128, allocations: 8 kB / 0.5454 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.128, allocations: 8 kB / 0.5454 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003119/0.1283, allocations: 176.9 kB / 0.5455 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.1298, allocations: 1.228 MB / 0.5467 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003412/0.1302, allocations: 105.2 kB / 0.5468 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.235e-05/0.1302, allocations: 41.77 kB / 0.5469 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.1303, allocations: 8 kB / 0.5469 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.1303, allocations: 30.56 kB / 0.5469 GB, free: 13.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.713e-06/0.1303, allocations: 0 / 0.5469 GB, free: 13.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009711/0.1313, allocations: 0.49 MB / 0.5474 GB, free: 12.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.143e-05/0.1313, allocations: 77.11 kB / 0.5475 GB, free: 12.85 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.1316, allocations: 254.8 kB / 0.5477 GB, free: 12.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.1317, allocations: 29.7 kB / 0.5477 GB, free: 12.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.1318, allocations: 203.9 kB / 0.5479 GB, free: 12.35 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.1319, allocations: 43.67 kB / 0.548 GB, free: 12.31 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.242e-05/0.1319, allocations: 41.66 kB / 0.548 GB, free: 12.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1321, allocations: 334.8 kB / 0.5483 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.24e-05/0.1322, allocations: 35.97 kB / 0.5484 GB, free: 11.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001462/0.1323, allocations: 132.9 kB / 0.5485 GB, free: 11.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.1325, allocations: 188.6 kB / 0.5487 GB, free: 11.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1325, allocations: 8 kB / 0.5487 GB, free: 11.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003189/0.1329, allocations: 205.2 kB / 0.5489 GB, free: 11.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.1329, allocations: 4 kB / 0.5489 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1329, allocations: 7.938 kB / 0.5489 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.1329, allocations: 11.94 kB / 0.5489 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1331, allocations: 39.97 kB / 0.5489 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.1331, allocations: 11.88 kB / 0.549 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.1332, allocations: 8 kB / 0.549 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.1332, allocations: 12.38 kB / 0.549 GB, free: 11.18 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 (24): * Single equations (assignments): 24 * 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.0001503/0.1334, allocations: 162.3 kB / 0.5491 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.996e-05/0.1334, allocations: 27.84 kB / 0.5492 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002446/0.1337, allocations: 127.4 kB / 0.5493 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1337, allocations: 0 / 0.5493 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.1337, allocations: 3.938 kB / 0.5493 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1337, allocations: 0 / 0.5493 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000584/0.1343, allocations: 487.4 kB / 0.5497 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.1343, allocations: 0 / 0.5497 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.1344, allocations: 27.88 kB / 0.5498 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.1344, allocations: 3.938 kB / 0.5498 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.1344, allocations: 7.984 kB / 0.5498 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1344, allocations: 0 / 0.5498 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1344, allocations: 0 / 0.5498 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003383/0.1348, allocations: 277.1 kB / 0.55 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.553e-05/0.1348, allocations: 97 kB / 0.5501 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.012e-05/0.1349, allocations: 7.938 kB / 0.5501 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.988e-05/0.135, allocations: 7.938 kB / 0.5502 GB, free: 9.848 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.809e-05/0.135, allocations: 7.984 kB / 0.5502 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.135, allocations: 4 kB / 0.5502 GB, free: 9.836 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001611/0.1352, allocations: 178 kB / 0.5503 GB, free: 9.664 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1352, allocations: 0 / 0.5503 GB, free: 9.664 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003321/0.1355, allocations: 44 kB / 0.5504 GB, free: 9.621 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 (13): * Single equations (assignments): 12 * 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.0007065/0.1362, allocations: 0.8079 MB / 0.5512 GB, free: 8.781 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002596/0.1365, allocations: 116 kB / 0.5513 GB, free: 8.668 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1365, allocations: 0 / 0.5513 GB, free: 8.668 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.435e-05/0.1365, allocations: 47.86 kB / 0.5513 GB, free: 8.621 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005183/0.1371, allocations: 62.09 kB / 0.5514 GB, free: 8.562 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003876/0.1409, allocations: 2.445 MB / 0.5538 GB, free: 5.945 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005411/0.1415, allocations: 0.7714 MB / 0.5545 GB, free: 5.148 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001934/0.1417, allocations: 38.22 kB / 0.5546 GB, free: 5.109 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.1418, allocations: 83.41 kB / 0.5546 GB, free: 5.027 MB / 414.1 MB Notification: Performance of SimCode: time 1.222e-06/0.1419, allocations: 0 / 0.5546 GB, free: 5.027 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.1717, allocations: 4.677 MB / 0.5592 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.735/8.906, allocations: 8.047 kB / 0.5592 GB, free: 0.4961 MB / 414.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.96025531803025]