Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008537/0.0008538, allocations: 177.3 kB / 16.71 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.172/1.172, allocations: 225.7 MB / 243.2 MB, free: 8.445 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007957/0.0007959, allocations: 97.11 kB / 294.4 MB, free: 9.477 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3088/0.3088, allocations: 38.18 MB / 383.7 MB, free: 40.32 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002786, allocations: 8 kB / 453.5 MB, free: 8.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2561, allocations: 59.16 MB / 0.5007 GB, free: 39.01 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.003855/0.26, allocations: 4.067 MB / 0.5047 GB, free: 38.7 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2612, allocations: 1.163 MB / 0.5058 GB, free: 38.06 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.2614, allocations: 19.72 kB / 0.5058 GB, free: 38.05 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.2616, allocations: 35.72 kB / 0.5059 GB, free: 38.03 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003164/0.2619, allocations: 159 kB / 0.506 GB, free: 37.94 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001636/0.2621, allocations: 71.33 kB / 0.5061 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004336/0.2625, allocations: 0.5139 MB / 0.5066 GB, free: 37.71 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.2627, allocations: 99.12 kB / 0.5067 GB, free: 37.68 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/0.2629, allocations: 146.5 kB / 0.5068 GB, free: 37.62 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002682/0.2632, allocations: 178.5 kB / 0.507 GB, free: 37.55 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.2632, allocations: 12.88 kB / 0.507 GB, free: 37.55 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.149e-05/0.2633, allocations: 10.97 kB / 0.507 GB, free: 37.55 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.614e-05/0.2633, allocations: 73.98 kB / 0.5071 GB, free: 37.53 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.2635, allocations: 155.9 kB / 0.5072 GB, free: 37.42 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002469/0.2637, allocations: 267.8 kB / 0.5075 GB, free: 37.33 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2637, allocations: 1.219 kB / 0.5075 GB, free: 37.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2637, allocations: 0 / 0.5075 GB, free: 37.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.2638, allocations: 0 / 0.5075 GB, free: 37.33 MB / 378.7 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.000726/0.2645, allocations: 0.5583 MB / 0.508 GB, free: 36.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.2645, allocations: 9.062 kB / 0.508 GB, free: 36.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.46e-05/0.2646, allocations: 32.25 kB / 0.5081 GB, free: 36.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.265, allocations: 317.6 kB / 0.5084 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.265, allocations: 24.44 kB / 0.5084 GB, free: 36.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.2651, allocations: 36.41 kB / 0.5084 GB, free: 36.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003839/0.2655, allocations: 286.1 kB / 0.5087 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.2655, allocations: 2.062 kB / 0.5087 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.2656, allocations: 10.12 kB / 0.5087 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.2656, allocations: 5.562 kB / 0.5087 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002789/0.2659, allocations: 189.8 kB / 0.5089 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.267, allocations: 1.288 MB / 0.5102 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.2672, allocations: 115.8 kB / 0.5103 GB, free: 35.17 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.916e-05/0.2673, allocations: 46.44 kB / 0.5103 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.2673, allocations: 5.094 kB / 0.5103 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.2674, allocations: 41.8 kB / 0.5103 GB, free: 35.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.2674, allocations: 0 / 0.5103 GB, free: 35.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.000696/0.2681, allocations: 0.5213 MB / 0.5109 GB, free: 34.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.2681, allocations: 106 kB / 0.511 GB, free: 34.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.2683, allocations: 244.3 kB / 0.5112 GB, free: 34.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.2683, allocations: 30.31 kB / 0.5112 GB, free: 34.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.531e-05/0.2684, allocations: 198.3 kB / 0.5114 GB, free: 34.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.2684, allocations: 36.56 kB / 0.5114 GB, free: 34.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-06/0.2685, allocations: 4.969 kB / 0.5115 GB, free: 34.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.743e-05/0.2685, allocations: 336.5 kB / 0.5118 GB, free: 33.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.796e-05/0.2686, allocations: 36.86 kB / 0.5118 GB, free: 33.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.867e-05/0.2687, allocations: 131.5 kB / 0.5119 GB, free: 33.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.2689, allocations: 198.2 kB / 0.5121 GB, free: 33.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2689, allocations: 0 / 0.5121 GB, free: 33.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003474/0.2692, allocations: 235.1 kB / 0.5123 GB, free: 33.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.2692, allocations: 5.969 kB / 0.5124 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.2692, allocations: 5.188 kB / 0.5124 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001027/0.2694, allocations: 26.62 kB / 0.5124 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002853/0.2696, allocations: 68.14 kB / 0.5124 GB, free: 33.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.2697, allocations: 6.938 kB / 0.5125 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.2698, allocations: 9.656 kB / 0.5125 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.2698, allocations: 17.19 kB / 0.5125 GB, free: 33.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.704e-05/0.2699, allocations: 146.4 kB / 0.5126 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.936e-05/0.27, allocations: 27.53 kB / 0.5126 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002035/0.2702, allocations: 144.3 kB / 0.5128 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2702, allocations: 6.688 kB / 0.5128 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.2702, allocations: 0 / 0.5128 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2702, allocations: 0 / 0.5128 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002611/0.2705, allocations: 287.7 kB / 0.5131 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2705, allocations: 3 kB / 0.5131 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/0.2706, allocations: 29.67 kB / 0.5131 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.2706, allocations: 7.359 kB / 0.5131 GB, free: 32.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.2707, allocations: 2.656 kB / 0.5131 GB, free: 32.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.2707, allocations: 3.938 kB / 0.5131 GB, free: 32.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2707, allocations: 2.5 kB / 0.5131 GB, free: 32.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000259/0.2709, allocations: 361.5 kB / 0.5135 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.64e-05/0.271, allocations: 104.8 kB / 0.5136 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.001e-05/0.271, allocations: 4 kB / 0.5136 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.2712, allocations: 6.938 kB / 0.5136 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.6e-05/0.2712, allocations: 10.22 kB / 0.5136 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.2712, allocations: 12.97 kB / 0.5136 GB, free: 32.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.909e-05/0.2713, allocations: 168.7 kB / 0.5137 GB, free: 32.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2713, allocations: 0 / 0.5137 GB, free: 32.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002921/0.2716, allocations: 48.97 kB / 0.5138 GB, free: 32.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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 6.4e-05/0.2717, allocations: 104.1 kB / 0.5139 GB, free: 32.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002539/0.2719, allocations: 208.7 kB / 0.5141 GB, free: 32.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.272, allocations: 3.938 kB / 0.5141 GB, free: 32.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.975e-05/0.272, allocations: 56.28 kB / 0.5141 GB, free: 32.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004559/0.2725, allocations: 47.58 kB / 0.5142 GB, free: 32.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007222/0.2732, allocations: 0.7632 MB / 0.5149 GB, free: 31.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.2734, allocations: 0.7733 MB / 0.5157 GB, free: 30.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.2735, allocations: 28.58 kB / 0.5157 GB, free: 30.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.725e-05/0.2736, allocations: 22.09 kB / 0.5157 GB, free: 30.82 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2736, allocations: 0 / 0.5157 GB, free: 30.82 MB / 378.7 MB Notification: Performance of Templates: time 0.004313/0.2779, allocations: 2.087 MB / 0.5178 GB, free: 30.63 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches