Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008347/0.0008349, allocations: 179.6 kB / 16.71 MB, free: 5.09 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.185/1.185, allocations: 225.7 MB / 243.2 MB, free: 8.449 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.0006989/0.0006988, allocations: 92.69 kB / 294.4 MB, free: 9.492 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.2754/0.2754, allocations: 38.18 MB / 383.7 MB, free: 40.35 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002752, allocations: 8 kB / 453.6 MB, free: 8.766 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2652, allocations: 59.15 MB / 0.5007 GB, free: 38.85 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.004871/0.2701, allocations: 5.203 MB / 0.5058 GB, free: 37.99 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.2722, allocations: 1.791 MB / 0.5075 GB, free: 36.58 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002683/0.2725, allocations: 30.09 kB / 0.5075 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003502/0.2728, allocations: 113.2 kB / 0.5077 GB, free: 36.51 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005364/0.2734, allocations: 298.8 kB / 0.5079 GB, free: 36.36 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.2737, allocations: 138.9 kB / 0.5081 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008831/0.2746, allocations: 1.075 MB / 0.5091 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.2748, allocations: 134.8 kB / 0.5092 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003621/0.2752, allocations: 267.1 kB / 0.5095 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005534/0.2758, allocations: 433 kB / 0.5099 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.899e-05/0.2758, allocations: 24.75 kB / 0.5099 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.315e-05/0.2759, allocations: 26.81 kB / 0.51 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002226/0.2762, allocations: 213.8 kB / 0.5102 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002468/0.2764, allocations: 280.2 kB / 0.5104 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.2768, allocations: 0.5808 MB / 0.511 GB, free: 35.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2768, allocations: 2.938 kB / 0.511 GB, free: 35.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2768, allocations: 2.469 kB / 0.511 GB, free: 35.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.2768, allocations: 0 / 0.511 GB, free: 35.32 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001333/0.2782, allocations: 0.85 MB / 0.5118 GB, free: 34.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.2782, allocations: 11.34 kB / 0.5118 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.963e-05/0.2783, allocations: 54.94 kB / 0.5119 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008372/0.2792, allocations: 0.599 MB / 0.5125 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.2792, allocations: 26.25 kB / 0.5125 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.889e-05/0.2793, allocations: 43.66 kB / 0.5126 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005942/0.2799, allocations: 0.5526 MB / 0.5131 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2799, allocations: 0 / 0.5131 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.2799, allocations: 13.91 kB / 0.5131 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002487/0.2802, allocations: 88.22 kB / 0.5132 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004225/0.2806, allocations: 358.3 kB / 0.5135 GB, free: 34.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.2827, allocations: 2.055 MB / 0.5155 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006968/0.2834, allocations: 387.6 kB / 0.5159 GB, free: 32.61 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004881/0.2839, allocations: 306.2 kB / 0.5162 GB, free: 32.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.284, allocations: 7.219 kB / 0.5162 GB, free: 32.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.604e-05/0.284, allocations: 40.69 kB / 0.5162 GB, free: 32.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.754e-06/0.284, allocations: 0 / 0.5162 GB, free: 32.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.003846/0.2879, allocations: 2.543 MB / 0.5187 GB, free: 31.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/0.2879, allocations: 82.95 kB / 0.5188 GB, free: 30.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/0.2883, allocations: 379 kB / 0.5192 GB, free: 30.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.2883, allocations: 36.7 kB / 0.5192 GB, free: 30.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.2884, allocations: 247.7 kB / 0.5194 GB, free: 30.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.929e-05/0.2885, allocations: 134 kB / 0.5196 GB, free: 30.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.71e-05/0.2885, allocations: 10.84 kB / 0.5196 GB, free: 30.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.08e-05/0.2886, allocations: 363.8 kB / 0.5199 GB, free: 30.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003304/0.289, allocations: 241.3 kB / 0.5202 GB, free: 29.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003614/0.2893, allocations: 362.6 kB / 0.5205 GB, free: 29.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007068/0.29, allocations: 0.6196 MB / 0.5211 GB, free: 29.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2901, allocations: 0 / 0.5211 GB, free: 29.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001588/0.2916, allocations: 1.004 MB / 0.5221 GB, free: 29.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.2917, allocations: 12.62 kB / 0.5221 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2917, allocations: 2.906 kB / 0.5221 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009552/0.2927, allocations: 408.3 kB / 0.5225 GB, free: 29.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003184/0.293, allocations: 81.5 kB / 0.5226 GB, free: 29.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004139/0.2971, allocations: 4.728 MB / 0.5272 GB, free: 25.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.2975, allocations: 39.8 kB / 0.5272 GB, free: 25.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.2976, allocations: 16.97 kB / 0.5272 GB, free: 25.76 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000231/0.2978, allocations: 213.4 kB / 0.5274 GB, free: 25.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.275e-05/0.2979, allocations: 39.56 kB / 0.5275 GB, free: 25.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/0.2993, allocations: 0.8409 MB / 0.5283 GB, free: 25.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.2993, allocations: 6.375 kB / 0.5283 GB, free: 25.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2993, allocations: 7.875 kB / 0.5283 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2993, allocations: 3.312 kB / 0.5283 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.3012, allocations: 1.414 MB / 0.5297 GB, free: 24.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.3013, allocations: 0 / 0.5297 GB, free: 24.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002015/0.3015, allocations: 46.56 kB / 0.5297 GB, free: 24.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001148/0.3026, allocations: 437.2 kB / 0.5302 GB, free: 24.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.792e-05/0.3027, allocations: 32.67 kB / 0.5302 GB, free: 24.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003499/0.3062, allocations: 6.246 MB / 0.5363 GB, free: 18.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3062, allocations: 0 / 0.5363 GB, free: 18.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.3076, allocations: 1.128 MB / 0.5374 GB, free: 18.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.3077, allocations: 114.8 kB / 0.5375 GB, free: 18.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.621e-05/0.3078, allocations: 37.42 kB / 0.5375 GB, free: 18.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000257/0.3081, allocations: 42.12 kB / 0.5376 GB, free: 18.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.767e-05/0.3082, allocations: 33.58 kB / 0.5376 GB, free: 18.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.3082, allocations: 13.25 kB / 0.5376 GB, free: 18.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000217/0.3085, allocations: 260.9 kB / 0.5379 GB, free: 18.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3085, allocations: 3.938 kB / 0.5379 GB, free: 18.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005736/0.309, allocations: 157.4 kB / 0.538 GB, free: 18.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001228/0.3092, allocations: 131.2 kB / 0.5381 GB, free: 18.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.3105, allocations: 0.8892 MB / 0.539 GB, free: 17.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3105, allocations: 0 / 0.539 GB, free: 17.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.3117, allocations: 1.093 MB / 0.5401 GB, free: 16.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006315/0.3123, allocations: 117.2 kB / 0.5402 GB, free: 16.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.3146, allocations: 2.214 MB / 0.5424 GB, free: 15.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.3149, allocations: 0.8841 MB / 0.5432 GB, free: 14.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002589/0.3151, allocations: 78.61 kB / 0.5433 GB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.415e-05/0.3152, allocations: 35.31 kB / 0.5433 GB, free: 14.69 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3152, allocations: 0 / 0.5433 GB, free: 14.69 MB / 378.7 MB Notification: Performance of Templates: time 0.01153/0.3267, allocations: 7.217 MB / 0.5504 GB, free: 14.24 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Line.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches