Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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: translateModel(PowerSystems.Examples.AC3ph.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source") translateModel(PowerSystems.Examples.AC3ph.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 115.8 kB / 17.74 MB, free: 5.34 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.001618/0.001618, allocations: 185.5 kB / 18.67 MB, free: 4.418 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.413/1.413, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.189/0.189, allocations: 38.03 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 63.89 kB / 458.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3668, allocations: 58.05 MB / 0.5048 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006299/0.3731, allocations: 4.408 MB / 0.5091 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.3758, allocations: 1.518 MB / 0.5105 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004211/0.3762, allocations: 16.47 kB / 0.5106 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009962/0.3773, allocations: 284.5 kB / 0.5108 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008544/0.3781, allocations: 287.5 kB / 0.5111 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007981/0.379, allocations: 245.1 kB / 0.5113 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000987/0.38, allocations: 0.6075 MB / 0.5119 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000471/0.3804, allocations: 225.7 kB / 0.5122 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006357/0.3811, allocations: 271.2 kB / 0.5124 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007773/0.3819, allocations: 373.8 kB / 0.5128 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001685/0.3821, allocations: 38.25 kB / 0.5128 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006513/0.3827, allocations: 224.1 kB / 0.513 GB, free: 2.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003795/0.3831, allocations: 230.3 kB / 0.5132 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004714/0.3836, allocations: 258.9 kB / 0.5135 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.3847, allocations: 0.6641 MB / 0.5141 GB, free: 2.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3847, allocations: 0 / 0.5141 GB, free: 2.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.624e-06/0.3847, allocations: 5.797 kB / 0.5141 GB, free: 2.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.491e-05/0.3848, allocations: 0 / 0.5141 GB, free: 2.031 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.002007/0.3868, allocations: 0.779 MB / 0.5149 GB, free: 1.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3868, allocations: 13.55 kB / 0.5149 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007759/0.3876, allocations: 94.39 kB / 0.515 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007642/0.3884, allocations: 422.6 kB / 0.5154 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.3884, allocations: 24.22 kB / 0.5154 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001614/0.3886, allocations: 52.28 kB / 0.5155 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.3898, allocations: 0.6995 MB / 0.5162 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.3898, allocations: 5.938 kB / 0.5162 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.957e-05/0.3899, allocations: 11.66 kB / 0.5162 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002314/0.3901, allocations: 69.83 kB / 0.5162 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.3915, allocations: 0.6629 MB / 0.5169 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003814/0.3953, allocations: 2.651 MB / 0.5195 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000539/0.3958, allocations: 315.8 kB / 0.5198 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002729/0.3961, allocations: 209 kB / 0.52 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.036e-05/0.3962, allocations: 19.73 kB / 0.52 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.3962, allocations: 35.53 kB / 0.52 GB, free: 14.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.515e-06/0.3962, allocations: 1.156 kB / 0.52 GB, free: 14.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.00216/0.3984, allocations: 1.283 MB / 0.5213 GB, free: 13.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.3985, allocations: 85.83 kB / 0.5214 GB, free: 13.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000359/0.3988, allocations: 294.1 kB / 0.5216 GB, free: 13.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.3989, allocations: 31.08 kB / 0.5217 GB, free: 13.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.3991, allocations: 257.5 kB / 0.5219 GB, free: 13.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.3992, allocations: 131.9 kB / 0.5221 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.3993, allocations: 87.2 kB / 0.5221 GB, free: 13.13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3995, allocations: 350.6 kB / 0.5225 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002698/0.3998, allocations: 186.6 kB / 0.5226 GB, free: 12.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003832/0.4001, allocations: 325.3 kB / 0.523 GB, free: 12.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007182/0.4009, allocations: 0.5646 MB / 0.5235 GB, free: 12.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.4009, allocations: 1.781 kB / 0.5235 GB, free: 12.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001227/0.4021, allocations: 0.6817 MB / 0.5242 GB, free: 11.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.4021, allocations: 7.156 kB / 0.5242 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008487/0.403, allocations: 497.6 kB / 0.5247 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005089/0.4035, allocations: 112.6 kB / 0.5248 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.4039, allocations: 83.16 kB / 0.5248 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003386/0.4073, allocations: 3.255 MB / 0.528 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.4076, allocations: 28.72 kB / 0.528 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.294e-05/0.4076, allocations: 15.53 kB / 0.5281 GB, free: 8.684 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003318/0.408, allocations: 212.9 kB / 0.5283 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.4081, allocations: 39.69 kB / 0.5283 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007937/0.4089, allocations: 470.6 kB / 0.5288 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.166e-05/0.4089, allocations: 11.3 kB / 0.5288 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.4089, allocations: 2.391 kB / 0.5288 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.487e-06/0.4089, allocations: 5.25 kB / 0.5288 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.4106, allocations: 1.021 MB / 0.5298 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4106, allocations: 1.219 kB / 0.5298 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003422/0.411, allocations: 66.69 kB / 0.5298 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.737e-06/0.411, allocations: 5.969 kB / 0.5298 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.106e-05/0.411, allocations: 8.969 kB / 0.5298 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.411, allocations: 3.344 kB / 0.5299 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.411, allocations: 1.094 kB / 0.5299 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.412, allocations: 0.7435 MB / 0.5306 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/0.4122, allocations: 138.1 kB / 0.5307 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.756e-05/0.4123, allocations: 11.78 kB / 0.5307 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.4125, allocations: 22.36 kB / 0.5307 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.427e-05/0.4126, allocations: 15.69 kB / 0.5308 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.4126, allocations: 20.64 kB / 0.5308 GB, free: 7.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002064/0.4128, allocations: 202.6 kB / 0.531 GB, free: 7.109 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4128, allocations: 4 kB / 0.531 GB, free: 7.105 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006693/0.4135, allocations: 110.1 kB / 0.5311 GB, free: 7.094 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.0003511/0.4138, allocations: 141.5 kB / 0.5312 GB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001228/0.4151, allocations: 0.7048 MB / 0.5319 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.4151, allocations: 0 / 0.5319 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003211/0.4154, allocations: 213.3 kB / 0.5321 GB, free: 6.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005407/0.416, allocations: 72.89 kB / 0.5322 GB, free: 6.512 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.418, allocations: 1.155 MB / 0.5333 GB, free: 5.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005667/0.4186, allocations: 0.871 MB / 0.5342 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.4187, allocations: 39.89 kB / 0.5342 GB, free: 5.117 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4187, allocations: 0 / 0.5342 GB, free: 5.117 MB / 398.1 MB Notification: Performance of Templates: time 0.01368/0.4324, allocations: 6.949 MB / 0.541 GB, free: 1.707 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches