Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.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.AC3ph.Transmission.PowerTransfer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer") translateModel(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, 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.212/1.212, allocations: 225.7 MB / 243.2 MB, free: 8.453 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.0007102/0.0007102, allocations: 90.08 kB / 294.4 MB, free: 9.52 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.281/0.281, allocations: 38.17 MB / 383.7 MB, free: 40.31 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002997/0.0002997, allocations: 11.98 kB / 453.5 MB, free: 8.785 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2591, allocations: 59.15 MB / 0.5007 GB, free: 38.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer): time 0.004615/0.2637, allocations: 4.833 MB / 0.5054 GB, free: 38.41 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.2659, allocations: 2.151 MB / 0.5075 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002472/0.2661, allocations: 27.62 kB / 0.5075 GB, free: 36.56 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.2665, allocations: 85.91 kB / 0.5076 GB, free: 36.52 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004914/0.267, allocations: 217.2 kB / 0.5078 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.2674, allocations: 159.1 kB / 0.508 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00069/0.2681, allocations: 0.7912 MB / 0.5087 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000864/0.269, allocations: 0.8109 MB / 0.5095 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003115/0.2693, allocations: 212.6 kB / 0.5097 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004084/0.2697, allocations: 262 kB / 0.51 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.004e-05/0.2698, allocations: 16.81 kB / 0.51 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002672/0.27, allocations: 129.4 kB / 0.5101 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.2702, allocations: 162.7 kB / 0.5103 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.2704, allocations: 227 kB / 0.5105 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004785/0.2709, allocations: 0.5035 MB / 0.511 GB, free: 34.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2709, allocations: 0 / 0.511 GB, free: 34.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2709, allocations: 0 / 0.511 GB, free: 34.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.2709, allocations: 1.594 kB / 0.511 GB, free: 34.86 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0008213/0.2717, allocations: 0.6427 MB / 0.5116 GB, free: 34.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.2718, allocations: 13.72 kB / 0.5116 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005328/0.2723, allocations: 89.73 kB / 0.5117 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004632/0.2728, allocations: 397.2 kB / 0.5121 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.2728, allocations: 30.36 kB / 0.5121 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.2729, allocations: 45.88 kB / 0.5122 GB, free: 33.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005478/0.2735, allocations: 478.8 kB / 0.5126 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.2735, allocations: 6.375 kB / 0.5126 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.2736, allocations: 18.73 kB / 0.5127 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.048e-05/0.2736, allocations: 26.78 kB / 0.5127 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004201/0.2741, allocations: 345.7 kB / 0.513 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001585/0.2757, allocations: 1.625 MB / 0.5146 GB, free: 32.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002506/0.2759, allocations: 174.6 kB / 0.5148 GB, free: 32.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.2761, allocations: 115.3 kB / 0.5149 GB, free: 32.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.2761, allocations: 320 / 0.5149 GB, free: 32.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/0.2761, allocations: 45.34 kB / 0.5149 GB, free: 32.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 1.062e-06/0.2761, allocations: 0 / 0.5149 GB, free: 32.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=20): time 0.00104/0.2772, allocations: 0.7771 MB / 0.5157 GB, free: 31.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.2772, allocations: 84.89 kB / 0.5158 GB, free: 31.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.2775, allocations: 298 kB / 0.516 GB, free: 31.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.2775, allocations: 30.95 kB / 0.5161 GB, free: 31.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.2776, allocations: 259.5 kB / 0.5163 GB, free: 31.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.2777, allocations: 67.81 kB / 0.5164 GB, free: 31.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.477e-05/0.2777, allocations: 4.938 kB / 0.5164 GB, free: 31.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.967e-05/0.2777, allocations: 353.3 kB / 0.5167 GB, free: 30.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.2779, allocations: 92.38 kB / 0.5168 GB, free: 30.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.2781, allocations: 201.8 kB / 0.517 GB, free: 30.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003046/0.2784, allocations: 332.6 kB / 0.5173 GB, free: 30.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2784, allocations: 2.844 kB / 0.5173 GB, free: 30.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006519/0.279, allocations: 424.8 kB / 0.5177 GB, free: 30.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.2791, allocations: 10.48 kB / 0.5177 GB, free: 30.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004626/0.2795, allocations: 262.1 kB / 0.518 GB, free: 30.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003091/0.2799, allocations: 80.34 kB / 0.5181 GB, free: 30.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.2801, allocations: 69.48 kB / 0.5181 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.2812, allocations: 1.58 MB / 0.5197 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.2814, allocations: 11.66 kB / 0.5197 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.2814, allocations: 15.94 kB / 0.5197 GB, free: 28.73 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 (34): * Single equations (assignments): 33 * 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.0001673/0.2816, allocations: 195.2 kB / 0.5199 GB, free: 28.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.42e-05/0.2817, allocations: 33.06 kB / 0.5199 GB, free: 28.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003508/0.282, allocations: 267.1 kB / 0.5202 GB, free: 28.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.282, allocations: 6.797 kB / 0.5202 GB, free: 28.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.282, allocations: 3.938 kB / 0.5202 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.282, allocations: 2.656 kB / 0.5202 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008375/0.2829, allocations: 0.7544 MB / 0.5209 GB, free: 27.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.2829, allocations: 0 / 0.5209 GB, free: 27.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002703/0.2832, allocations: 50.41 kB / 0.521 GB, free: 27.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.2832, allocations: 2.938 kB / 0.521 GB, free: 27.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.2832, allocations: 9.531 kB / 0.521 GB, free: 27.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2832, allocations: 6.5 kB / 0.521 GB, free: 27.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2832, allocations: 7.938 kB / 0.521 GB, free: 27.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004101/0.2836, allocations: 449.6 kB / 0.5214 GB, free: 27.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.973e-05/0.2837, allocations: 103.4 kB / 0.5215 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.2838, allocations: 7.906 kB / 0.5215 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.2839, allocations: 8.328 kB / 0.5215 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.85e-05/0.2839, allocations: 22.5 kB / 0.5216 GB, free: 27.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.284, allocations: 5.844 kB / 0.5216 GB, free: 27.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000168/0.2841, allocations: 221.7 kB / 0.5218 GB, free: 27.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.2841, allocations: 0 / 0.5218 GB, free: 27.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003552/0.2845, allocations: 87.7 kB / 0.5219 GB, free: 27.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.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 (23): * Single equations (assignments): 22 * 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 9.478e-05/0.2846, allocations: 111.9 kB / 0.522 GB, free: 27.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005316/0.2851, allocations: 376.1 kB / 0.5223 GB, free: 27.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2852, allocations: 0 / 0.5223 GB, free: 27.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.2853, allocations: 98.42 kB / 0.5224 GB, free: 27.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004434/0.2857, allocations: 66.36 kB / 0.5225 GB, free: 27.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.2869, allocations: 1.139 MB / 0.5236 GB, free: 26.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.2871, allocations: 0.8525 MB / 0.5244 GB, free: 25.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001969/0.2873, allocations: 69.5 kB / 0.5245 GB, free: 25.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.509e-05/0.2874, allocations: 24.94 kB / 0.5245 GB, free: 25.58 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.2874, allocations: 4 kB / 0.5245 GB, free: 25.57 MB / 378.7 MB Notification: Performance of Templates: time 0.005757/0.2932, allocations: 3.304 MB / 0.5277 GB, free: 25.31 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches