Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.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.AC1ph_DC.Transformation.OnePhase,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_OnePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_OnePhase",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.002014/0.002014, allocations: 108.3 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.002291/0.002292, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.429/1.429, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1741/0.1741, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 65.02 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1051, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase): time 0.006504/0.1116, allocations: 5.497 MB / 462.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001998/0.1136, allocations: 1.301 MB / 463.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002975/0.1139, allocations: 15.88 kB / 463.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000432/0.1144, allocations: 135.1 kB / 463.9 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008428/0.1153, allocations: 374.2 kB / 464.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002777/0.1156, allocations: 135.8 kB / 464.4 MB, free: 500 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007304/0.1163, allocations: 0.7437 MB / 465.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.1166, allocations: 204.1 kB / 465.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004852/0.1171, allocations: 338.5 kB / 465.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006146/0.1177, allocations: 378.8 kB / 466.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.529e-05/0.1178, allocations: 36 kB / 466.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.1179, allocations: 36 kB / 466.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.1181, allocations: 191.5 kB / 466.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002626/0.1184, allocations: 250.7 kB / 466.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004725/0.1189, allocations: 0.5177 MB / 467.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1189, allocations: 0 / 467.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1189, allocations: 0 / 467.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.1189, allocations: 0 / 467.1 MB, free: 13.81 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001276/0.1202, allocations: 0.8009 MB / 467.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.1202, allocations: 11.89 kB / 467.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.909e-05/0.1203, allocations: 82.7 kB / 468 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.937e-05/0.1204, allocations: 56.28 kB / 468 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006672/0.1211, allocations: 476.1 kB / 468.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.768e-05/0.1211, allocations: 29 kB / 468.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.005e-05/0.1212, allocations: 36 kB / 468.6 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007311/0.1219, allocations: 0.5 MB / 469.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.122, allocations: 0 / 469.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.122, allocations: 19.94 kB / 469.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.275e-05/0.122, allocations: 20.98 kB / 469.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005532/0.1226, allocations: 363.7 kB / 469.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.125, allocations: 2.091 MB / 471.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003943/0.1254, allocations: 246.7 kB / 471.8 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002353/0.1256, allocations: 125.7 kB / 471.9 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.1257, allocations: 8 kB / 471.9 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.1257, allocations: 38.56 kB / 472 MB, free: 8.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.1257, allocations: 3.938 kB / 472 MB, free: 8.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001125/0.1268, allocations: 0.7562 MB / 472.7 MB, free: 7.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.1269, allocations: 89.03 kB / 472.8 MB, free: 7.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.1273, allocations: 377.6 kB / 473.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.1273, allocations: 29.7 kB / 473.2 MB, free: 7.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.1275, allocations: 287.1 kB / 473.5 MB, free: 7.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.5e-05/0.1275, allocations: 86.83 kB / 473.6 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.788e-05/0.1276, allocations: 82.03 kB / 473.6 MB, free: 6.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.1278, allocations: 346.8 kB / 474 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.1279, allocations: 84.83 kB / 474.1 MB, free: 6.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.1282, allocations: 281.2 kB / 474.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004325/0.1286, allocations: 399.2 kB / 474.7 MB, free: 5.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.1286, allocations: 8 kB / 474.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000706/0.1293, allocations: 457.5 kB / 475.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1294, allocations: 8 kB / 475.2 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.1294, allocations: 8 kB / 475.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002072/0.1296, allocations: 48.83 kB / 475.2 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.1299, allocations: 88.17 kB / 475.3 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/0.1313, allocations: 1.602 MB / 476.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002/0.1315, allocations: 20 kB / 477 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.1315, allocations: 27.97 kB / 477 MB, free: 3.164 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001955/0.1317, allocations: 197.6 kB / 477.2 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.1318, allocations: 39.47 kB / 477.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003848/0.1322, allocations: 247.5 kB / 477.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1322, allocations: 7.938 kB / 477.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.1322, allocations: 0 / 477.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1322, allocations: 0 / 477.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007775/0.133, allocations: 0.6801 MB / 478.1 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.133, allocations: 4 kB / 478.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002356/0.1332, allocations: 51.91 kB / 478.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.1333, allocations: 0 / 478.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.1333, allocations: 12.03 kB / 478.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1333, allocations: 0 / 478.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1333, allocations: 4 kB / 478.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004666/0.1338, allocations: 433.3 kB / 478.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.1339, allocations: 124.6 kB / 478.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.1339, allocations: 7.984 kB / 478.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.1341, allocations: 16 kB / 478.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.308e-05/0.1341, allocations: 11.98 kB / 478.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.1341, allocations: 8 kB / 478.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002372/0.1344, allocations: 259.1 kB / 479.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1344, allocations: 0 / 479.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000421/0.1348, allocations: 88 kB / 479.1 MB, free: 0.8945 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * 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.0007028/0.1355, allocations: 0.9708 MB / 480.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006465/0.1362, allocations: 421.9 kB / 480.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1362, allocations: 0 / 480.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.1363, allocations: 95.8 kB / 480.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005627/0.1369, allocations: 101.2 kB / 480.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004079/0.141, allocations: 3.73 MB / 484.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.1414, allocations: 0.8545 MB / 485.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000294/0.1417, allocations: 92.06 kB / 485.4 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.1419, allocations: 147.4 kB / 485.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1419, allocations: 0 / 485.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02872/0.1706, allocations: 7.472 MB / 493 MB, free: 2.852 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.218/9.388, allocations: 4.062 kB / 493 MB, free: 2.848 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_OnePhase.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches