Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.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.Generation.PVsource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource") translateModel(PowerSystems.Examples.AC3ph.Generation.PVsource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001598/0.001597, allocations: 112.6 kB / 17.7 MB, free: 5.387 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.001611/0.001611, allocations: 182.9 kB / 18.63 MB, free: 4.461 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.456/1.456, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1829/0.1829, allocations: 38.03 MB / 330.5 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 67.38 kB / 400.3 MB, free: 33.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.11, allocations: 58.05 MB / 458.3 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.006511/0.1165, allocations: 4.603 MB / 462.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.119, allocations: 1.305 MB / 464.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002589/0.1193, allocations: 15.88 kB / 464.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00126/0.1206, allocations: 402.2 kB / 464.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007358/0.1213, allocations: 250.8 kB / 464.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005535/0.1219, allocations: 179.6 kB / 465.1 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000672/0.1226, allocations: 0.553 MB / 465.6 MB, free: 60 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005397/0.1231, allocations: 293.2 kB / 465.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003833/0.1235, allocations: 254.9 kB / 466.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005239/0.1241, allocations: 271 kB / 466.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.311e-05/0.1241, allocations: 32 kB / 466.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002952/0.1244, allocations: 135.7 kB / 466.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002028/0.1247, allocations: 179.5 kB / 466.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002299/0.1249, allocations: 218.9 kB / 467 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006136/0.1255, allocations: 0.5178 MB / 467.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.1255, allocations: 4 kB / 467.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1255, allocations: 0 / 467.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.1256, allocations: 0 / 467.5 MB, free: 14.18 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001252/0.1268, allocations: 0.6905 MB / 468.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.1269, allocations: 15.89 kB / 468.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005982/0.1275, allocations: 88.31 kB / 468.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007185/0.1282, allocations: 411.2 kB / 468.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.1282, allocations: 29.38 kB / 468.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.1284, allocations: 48.11 kB / 468.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007196/0.1291, allocations: 472.8 kB / 469.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.1292, allocations: 0 / 469.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.059e-05/0.1292, allocations: 15.98 kB / 469.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001073/0.1293, allocations: 28.98 kB / 469.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000552/0.1299, allocations: 339.7 kB / 469.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002346/0.1322, allocations: 1.698 MB / 471.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.1325, allocations: 152.6 kB / 471.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.1327, allocations: 106 kB / 471.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.1327, allocations: 7.938 kB / 471.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.1328, allocations: 34.5 kB / 471.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.903e-06/0.1328, allocations: 0 / 471.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001567/0.1344, allocations: 0.8491 MB / 472.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.1344, allocations: 77.11 kB / 472.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003361/0.1348, allocations: 308.4 kB / 472.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.1348, allocations: 29.7 kB / 472.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.135, allocations: 255.4 kB / 473.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.297e-05/0.135, allocations: 63.31 kB / 473.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.665e-05/0.1352, allocations: 65.83 kB / 473.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.1353, allocations: 342.8 kB / 473.5 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.1355, allocations: 92.22 kB / 473.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.1357, allocations: 197.3 kB / 473.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004141/0.1361, allocations: 314.9 kB / 474.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1361, allocations: 0 / 474.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008234/0.137, allocations: 457.7 kB / 474.6 MB, free: 6.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.137, allocations: 4 kB / 474.6 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005515/0.1376, allocations: 292 kB / 474.9 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004861/0.1381, allocations: 132.9 kB / 475 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.1383, allocations: 51.91 kB / 475 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003144/0.1414, allocations: 2.385 MB / 477.4 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.1417, allocations: 15.92 kB / 477.5 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.93e-05/0.1418, allocations: 19.94 kB / 477.5 MB, free: 3.551 MB / 350.1 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 (29): * Single equations (assignments): 28 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003034/0.1421, allocations: 181.7 kB / 477.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.527e-05/0.1422, allocations: 27.72 kB / 477.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000491/0.1427, allocations: 253.3 kB / 477.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.1427, allocations: 4 kB / 477.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1427, allocations: 3.938 kB / 477.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1427, allocations: 4 kB / 477.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.1439, allocations: 0.7078 MB / 478.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1439, allocations: 0 / 478.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002088/0.1441, allocations: 47.97 kB / 478.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001078/0.1443, allocations: 28.84 kB / 478.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.1443, allocations: 7.984 kB / 478.7 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001398/0.1457, allocations: 1.596 MB / 480.3 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1457, allocations: 0 / 480.3 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005607/0.1463, allocations: 429.6 kB / 480.7 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.1464, allocations: 104.7 kB / 480.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.1465, allocations: 11.97 kB / 480.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.1466, allocations: 8 kB / 480.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/0.1467, allocations: 15.98 kB / 480.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.1467, allocations: 4 kB / 480.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002426/0.1469, allocations: 223 kB / 481.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.147, allocations: 0 / 481.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000496/0.1475, allocations: 84 kB / 481.2 MB, free: 15.57 MB / 366.1 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000145/0.1476, allocations: 107.1 kB / 481.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007302/0.1483, allocations: 398.3 kB / 481.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1484, allocations: 0 / 481.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003221/0.1487, allocations: 232.4 kB / 481.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000478/0.1492, allocations: 64.92 kB / 482 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.1506, allocations: 0.8539 MB / 482.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004751/0.1511, allocations: 0.8458 MB / 483.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001531/0.1512, allocations: 54.94 kB / 483.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.08e-05/0.1513, allocations: 27.42 kB / 483.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1513, allocations: 0 / 483.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of Templates: time 0.008683/0.16, allocations: 3.966 MB / 487.7 MB, free: 8.965 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PVsource.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sensor.p[1],sensor.p[2],sensor.p[3] Variables in the result:$cse1,$cse2,PVsource.S_base,PVsource.S_nom,PVsource.V_base,PVsource.V_nom,PVsource.V_start,PVsource.p0,PVsource.puUnits,PVsource.pv_internal[1],PVsource.pv_internal[2],PVsource.use_pv_in,PVsource.v0,infBus.S_base,infBus.S_nom,infBus.V_base,infBus.V_nom,infBus.alpha,infBus.alpha0,infBus.phi,infBus.puUnits,infBus.use_vPhasor_in,infBus.v0,infBus.vPhasor_internal[1],infBus.vPhasor_internal[2],line.L,line.L0,line.R,line.RL_base[1],line.RL_base[2],line.delta_len_km,line.dynType,line.i_start[1],line.i_start[2],line.i_start[3],line.len,line.ne,line.par.S_nom,line.par.V_nom,line.par.f_nom,line.par.puUnits,line.par.r,line.par.x,line.par.x0,line.v_start[1],line.v_start[2],line.v_start[3],sensor.S_base,sensor.S_nom,sensor.V_nom,sensor.p[1],sensor.p[2],sensor.p[3],sensor.puUnits,system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time