Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 108.9 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 191.5 kB / 17.85 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1837/0.1837, allocations: 38.03 MB / 329.7 MB, free: 8.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 56.19 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09792, allocations: 58.07 MB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.006192/0.1041, allocations: 4.571 MB / 461.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002492/0.1067, allocations: 1.464 MB / 463 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002796/0.107, allocations: 19.88 kB / 463 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.1081, allocations: 378.4 kB / 463.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007048/0.1088, allocations: 234.8 kB / 463.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007922/0.1096, allocations: 259.3 kB / 463.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007879/0.1104, allocations: 0.5651 MB / 464.4 MB, free: 488 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005953/0.111, allocations: 330.5 kB / 464.8 MB, free: 164 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005497/0.1116, allocations: 255 kB / 465 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006168/0.1122, allocations: 315 kB / 465.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.818e-05/0.1123, allocations: 36 kB / 465.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003345/0.1127, allocations: 143.8 kB / 465.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000245/0.1129, allocations: 223.4 kB / 465.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003526/0.1133, allocations: 250.8 kB / 466 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006861/0.114, allocations: 0.5879 MB / 466.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.114, allocations: 0 / 466.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.114, allocations: 0 / 466.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.114, allocations: 0 / 466.6 MB, free: 14.37 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001587/0.1156, allocations: 0.7621 MB / 467.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/0.1157, allocations: 15.89 kB / 467.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.1158, allocations: 86.69 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006481/0.1165, allocations: 96.22 kB / 467.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005992/0.1171, allocations: 400 kB / 467.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/0.1171, allocations: 29.38 kB / 467.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.1173, allocations: 59.86 kB / 468 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008867/0.1182, allocations: 0.6489 MB / 468.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.1182, allocations: 0 / 468.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.65e-05/0.1183, allocations: 16 kB / 468.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/0.1184, allocations: 28.98 kB / 468.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008239/0.1192, allocations: 487.5 kB / 469.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003877/0.1231, allocations: 3.01 MB / 472.2 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.1234, allocations: 185 kB / 472.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.1236, allocations: 109.7 kB / 472.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.1237, allocations: 7.984 kB / 472.5 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.1237, allocations: 38.5 kB / 472.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.693e-06/0.1237, allocations: 0 / 472.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001703/0.1254, allocations: 0.8371 MB / 473.3 MB, free: 7.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.1255, allocations: 85.06 kB / 473.4 MB, free: 7.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003688/0.1259, allocations: 349.4 kB / 473.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.762e-05/0.1259, allocations: 29.7 kB / 473.8 MB, free: 6.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002254/0.1261, allocations: 303 kB / 474.1 MB, free: 6.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.509e-05/0.1262, allocations: 75 kB / 474.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.1264, allocations: 93.94 kB / 474.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1265, allocations: 338.8 kB / 474.6 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.1268, allocations: 132.8 kB / 474.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.1272, allocations: 330.9 kB / 475 MB, free: 5.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006788/0.1279, allocations: 0.5007 MB / 475.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.1279, allocations: 7.938 kB / 475.5 MB, free: 4.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001006/0.1289, allocations: 0.5541 MB / 476.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.1289, allocations: 10.34 kB / 476.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005403/0.1295, allocations: 274.9 kB / 476.4 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000356/0.1298, allocations: 84.72 kB / 476.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003589/0.1302, allocations: 91.89 kB / 476.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001726/0.1319, allocations: 1.727 MB / 478.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.1322, allocations: 20.06 kB / 478.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.1323, allocations: 31.88 kB / 478.3 MB, free: 1.781 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002423/0.1325, allocations: 217.7 kB / 478.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-05/0.1326, allocations: 35.53 kB / 478.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005312/0.1331, allocations: 292.6 kB / 478.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.341e-06/0.1331, allocations: 8 kB / 478.9 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.1331, allocations: 0 / 478.9 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1332, allocations: 0 / 478.9 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.1344, allocations: 0.7906 MB / 479.7 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1344, allocations: 0 / 479.7 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.1347, allocations: 51.97 kB / 479.7 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1347, allocations: 8 kB / 479.7 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.1347, allocations: 11.98 kB / 479.7 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1347, allocations: 7.938 kB / 479.7 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.1348, allocations: 3.984 kB / 479.7 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006163/0.1354, allocations: 480.7 kB / 480.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.173e-05/0.1355, allocations: 104.7 kB / 480.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/0.1355, allocations: 11.94 kB / 480.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.1357, allocations: 12.03 kB / 480.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/0.1358, allocations: 15.92 kB / 480.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.1358, allocations: 8 kB / 480.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002976/0.1361, allocations: 235.2 kB / 480.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.1361, allocations: 4 kB / 480.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005546/0.1367, allocations: 96 kB / 480.7 MB, free: 15.31 MB / 366.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 (24): * Single equations (assignments): 23 * 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.0009514/0.1376, allocations: 1.003 MB / 481.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008269/0.1385, allocations: 468 kB / 482.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.1385, allocations: 0 / 482.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001699/0.1387, allocations: 119.8 kB / 482.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004921/0.1392, allocations: 77.47 kB / 482.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005137/0.1443, allocations: 3.997 MB / 486.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005804/0.1449, allocations: 0.874 MB / 487.2 MB, free: 8.422 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003668/0.1453, allocations: 115.2 kB / 487.3 MB, free: 8.312 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/0.1455, allocations: 147.4 kB / 487.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1455, allocations: 3.938 kB / 487.5 MB, free: 8.164 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03291/0.1784, allocations: 7.275 MB / 494.7 MB, free: 1.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.361/9.539, allocations: 9.516 kB / 494.8 MB, free: 1 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches