Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008159/0.0008161, allocations: 183.7 kB / 16.71 MB, free: 4.969 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.217/1.217, allocations: 225.7 MB / 243.2 MB, free: 8.504 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.0007345/0.0007346, allocations: 98.72 kB / 294.4 MB, free: 9.508 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.2674/0.2674, allocations: 38.18 MB / 383.7 MB, free: 40.37 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002881/0.0002881, allocations: 11.98 kB / 453.6 MB, free: 8.785 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2762, allocations: 59.15 MB / 0.5007 GB, free: 38.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004012/0.2802, allocations: 4.105 MB / 0.5047 GB, free: 38.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.2819, allocations: 1.246 MB / 0.5059 GB, free: 37.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/0.2821, allocations: 26.25 kB / 0.5059 GB, free: 37.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.2822, allocations: 31.12 kB / 0.506 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003705/0.2826, allocations: 156.5 kB / 0.5061 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001773/0.2828, allocations: 70.31 kB / 0.5062 GB, free: 37.8 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004752/0.2833, allocations: 0.498 MB / 0.5067 GB, free: 37.62 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.2835, allocations: 77.5 kB / 0.5067 GB, free: 37.6 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.2837, allocations: 137.5 kB / 0.5069 GB, free: 37.54 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002881/0.284, allocations: 164.7 kB / 0.507 GB, free: 37.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.2841, allocations: 10.91 kB / 0.507 GB, free: 37.48 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.078e-05/0.2841, allocations: 10.94 kB / 0.5071 GB, free: 37.48 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.2842, allocations: 75.05 kB / 0.5071 GB, free: 37.45 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.2844, allocations: 143.5 kB / 0.5073 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.2846, allocations: 237.8 kB / 0.5075 GB, free: 37.28 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2847, allocations: 0 / 0.5075 GB, free: 37.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2847, allocations: 0.625 kB / 0.5075 GB, free: 37.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.2847, allocations: 1.125 kB / 0.5075 GB, free: 37.28 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007029/0.2854, allocations: 0.5149 MB / 0.508 GB, free: 36.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.2854, allocations: 10.17 kB / 0.508 GB, free: 36.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.609e-05/0.2855, allocations: 25.72 kB / 0.508 GB, free: 36.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.2858, allocations: 308.4 kB / 0.5083 GB, free: 36.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.2859, allocations: 20.75 kB / 0.5083 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.2859, allocations: 19.02 kB / 0.5084 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003789/0.2863, allocations: 271.1 kB / 0.5086 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.2863, allocations: 1.156 kB / 0.5086 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.2863, allocations: 10.88 kB / 0.5086 GB, free: 36.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.2863, allocations: 8.5 kB / 0.5086 GB, free: 36.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002548/0.2866, allocations: 160.9 kB / 0.5088 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.2876, allocations: 1.177 MB / 0.5099 GB, free: 35.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.2877, allocations: 76.22 kB / 0.51 GB, free: 35.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.186e-05/0.2878, allocations: 31.5 kB / 0.51 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.2878, allocations: 5.953 kB / 0.51 GB, free: 35.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.2878, allocations: 40.88 kB / 0.5101 GB, free: 35.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.2878, allocations: 0 / 0.5101 GB, free: 35.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005854/0.2884, allocations: 410.6 kB / 0.5105 GB, free: 34.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.2885, allocations: 85.56 kB / 0.5106 GB, free: 34.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.2887, allocations: 234.8 kB / 0.5108 GB, free: 34.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.666e-06/0.2887, allocations: 27.23 kB / 0.5108 GB, free: 34.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.025e-05/0.2888, allocations: 200 kB / 0.511 GB, free: 34.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.2888, allocations: 31.17 kB / 0.511 GB, free: 34.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.2889, allocations: 4 kB / 0.511 GB, free: 34.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.619e-05/0.2889, allocations: 336.6 kB / 0.5114 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.289, allocations: 29.7 kB / 0.5114 GB, free: 34.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.559e-05/0.2891, allocations: 119.7 kB / 0.5115 GB, free: 33.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.2892, allocations: 167.7 kB / 0.5117 GB, free: 33.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2892, allocations: 0.9375 kB / 0.5117 GB, free: 33.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002636/0.2895, allocations: 173.6 kB / 0.5118 GB, free: 33.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.2895, allocations: 10.56 kB / 0.5118 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.2895, allocations: 3.656 kB / 0.5118 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.2896, allocations: 8.531 kB / 0.5118 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.2897, allocations: 45.52 kB / 0.5119 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.2897, allocations: 10.17 kB / 0.5119 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.947e-05/0.2898, allocations: 6.469 kB / 0.5119 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.2899, allocations: 11.03 kB / 0.5119 GB, free: 33.61 MB / 378.7 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 (22): * Single equations (assignments): 22 * 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 9.257e-05/0.29, allocations: 145.3 kB / 0.5121 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.325e-05/0.29, allocations: 26.78 kB / 0.5121 GB, free: 33.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.2901, allocations: 97.25 kB / 0.5122 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.2901, allocations: 2.891 kB / 0.5122 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.2902, allocations: 7.938 kB / 0.5122 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2902, allocations: 3.828 kB / 0.5122 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003564/0.2905, allocations: 419.4 kB / 0.5126 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2905, allocations: 3.797 kB / 0.5126 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.32e-05/0.2906, allocations: 12.81 kB / 0.5126 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2906, allocations: 7.562 kB / 0.5126 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.2906, allocations: 0 / 0.5126 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.2907, allocations: 2.953 kB / 0.5126 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2907, allocations: 8.625 kB / 0.5126 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.2909, allocations: 235 kB / 0.5128 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.2909, allocations: 95.42 kB / 0.5129 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.829e-05/0.2909, allocations: 7.078 kB / 0.5129 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.146e-05/0.291, allocations: 5.031 kB / 0.5129 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.323e-05/0.291, allocations: 5.188 kB / 0.513 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.2911, allocations: 2.641 kB / 0.513 GB, free: 32.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001234/0.2912, allocations: 169.4 kB / 0.5131 GB, free: 32.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2912, allocations: 0 / 0.5131 GB, free: 32.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002672/0.2915, allocations: 38.62 kB / 0.5132 GB, free: 32.6 MB / 378.7 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 (9): * Single equations (assignments): 8 * 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 8.036e-05/0.2916, allocations: 109.6 kB / 0.5133 GB, free: 32.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.2917, allocations: 88.3 kB / 0.5133 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2917, allocations: 2.938 kB / 0.5133 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.064e-05/0.2918, allocations: 30.83 kB / 0.5134 GB, free: 32.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004369/0.2922, allocations: 55.91 kB / 0.5134 GB, free: 32.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006669/0.2929, allocations: 0.6296 MB / 0.514 GB, free: 32.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.293, allocations: 0.7597 MB / 0.5148 GB, free: 31.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.605e-05/0.2931, allocations: 32.36 kB / 0.5148 GB, free: 31.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.992e-05/0.2932, allocations: 19.03 kB / 0.5148 GB, free: 31.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2932, allocations: 0 / 0.5148 GB, free: 31.3 MB / 378.7 MB Notification: Performance of Templates: time 0.003833/0.297, allocations: 1.669 MB / 0.5165 GB, free: 31.14 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches