Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.AC1ph_DC.Elementary.LoadAC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 101.9 kB / 16.5 MB, free: 6.688 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.001042/0.001042, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.377/1.377, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1698/0.1698, allocations: 38.05 MB / 329.3 MB, free: 9.105 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 65.41 kB / 398.1 MB, free: 34.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1121, allocations: 58.06 MB / 456.2 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.00636/0.1185, allocations: 4.839 MB / 461 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.1203, allocations: 1.13 MB / 462.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002152/0.1206, allocations: 23.88 kB / 462.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001936/0.1208, allocations: 39.69 kB / 462.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004809/0.1213, allocations: 187.1 kB / 462.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002186/0.1215, allocations: 87.91 kB / 462.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006126/0.1221, allocations: 0.6309 MB / 463.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002652/0.1224, allocations: 123.4 kB / 463.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.1227, allocations: 191.1 kB / 463.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003686/0.1231, allocations: 255 kB / 463.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.782e-05/0.1231, allocations: 16 kB / 463.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.783e-05/0.1232, allocations: 20 kB / 463.7 MB, free: 1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.1233, allocations: 111.7 kB / 463.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.1235, allocations: 163.1 kB / 464 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003434/0.1239, allocations: 358.7 kB / 464.3 MB, free: 388 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1239, allocations: 0 / 464.3 MB, free: 388 kB / 334.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1239, allocations: 0 / 464.3 MB, free: 388 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.1239, allocations: 0 / 464.3 MB, free: 388 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001287/0.1252, allocations: 0.7023 MB / 465 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.1252, allocations: 12.03 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.631e-05/0.1253, allocations: 36.47 kB / 465.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005566/0.1259, allocations: 387.1 kB / 465.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.1259, allocations: 24.56 kB / 465.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.958e-05/0.126, allocations: 24 kB / 465.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005146/0.1265, allocations: 356.7 kB / 465.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1265, allocations: 4 kB / 465.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.1266, allocations: 11.98 kB / 465.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.1266, allocations: 8 kB / 465.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004061/0.127, allocations: 258 kB / 466.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.1287, allocations: 1.442 MB / 467.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.129, allocations: 161 kB / 467.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.1291, allocations: 85.73 kB / 467.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.1291, allocations: 3.984 kB / 467.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.1292, allocations: 38.5 kB / 467.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.1292, allocations: 0 / 467.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001115/0.1303, allocations: 0.6828 MB / 468.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.1304, allocations: 77.11 kB / 468.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.1307, allocations: 304.4 kB / 468.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.1307, allocations: 25.7 kB / 468.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.1308, allocations: 223.6 kB / 469.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.461e-05/0.1309, allocations: 51.39 kB / 469.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-05/0.131, allocations: 53.61 kB / 469.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1311, allocations: 338.8 kB / 469.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.1312, allocations: 67.94 kB / 469.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.1314, allocations: 176.7 kB / 469.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003078/0.1317, allocations: 256.3 kB / 470 MB, free: 10.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1318, allocations: 0 / 470 MB, free: 10.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004213/0.1322, allocations: 280.9 kB / 470.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1322, allocations: 10.78 kB / 470.3 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.1322, allocations: 8 kB / 470.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1322, allocations: 7.938 kB / 470.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.1325, allocations: 59.91 kB / 470.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1325, allocations: 4 kB / 470.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.1327, allocations: 15.98 kB / 470.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.1327, allocations: 8 kB / 470.4 MB, free: 9.793 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): 29 * 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 0.0001648/0.1329, allocations: 169.7 kB / 470.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.339e-05/0.1329, allocations: 31.56 kB / 470.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003752/0.1333, allocations: 242.2 kB / 470.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1333, allocations: 4 kB / 470.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1333, allocations: 0 / 470.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1333, allocations: 0 / 470.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007413/0.1341, allocations: 0.6201 MB / 471.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.1341, allocations: 4 kB / 471.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001967/0.1343, allocations: 35.97 kB / 471.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.1343, allocations: 3.984 kB / 471.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.1343, allocations: 12.03 kB / 471.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1344, allocations: 7.922 kB / 471.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1344, allocations: 0 / 471.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005082/0.1349, allocations: 424.6 kB / 472 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.995e-05/0.135, allocations: 100.8 kB / 472.1 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.102e-05/0.135, allocations: 11.98 kB / 472.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.1352, allocations: 8.062 kB / 472.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.234e-05/0.1352, allocations: 11.98 kB / 472.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.1352, allocations: 8 kB / 472.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001984/0.1354, allocations: 222.9 kB / 472.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1355, allocations: 3.938 kB / 472.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003171/0.1358, allocations: 56 kB / 472.4 MB, free: 7.727 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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 0.0001034/0.1359, allocations: 103.2 kB / 472.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003053/0.1362, allocations: 191.7 kB / 472.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1362, allocations: 0 / 472.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.1363, allocations: 83.89 kB / 472.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004947/0.1368, allocations: 76.81 kB / 472.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.1379, allocations: 0.77 MB / 473.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.1383, allocations: 0.8028 MB / 474.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001833/0.1385, allocations: 50.95 kB / 474.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.824e-05/0.1385, allocations: 27.42 kB / 474.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of SimCode: time 1.913e-06/0.1386, allocations: 4 kB / 474.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of Templates: time 0.006337/0.1449, allocations: 2.828 MB / 477.3 MB, free: 2.758 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meter.i,meter.p,meter.v Variables in the result:meter.I_base,meter.S_nom,meter.V_base,meter.V_nom,meter.av,meter.i,meter.p,meter.puUnits,meter.tcst,meter.v,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,transPh.a_end,transPh.a_start,transPh.coef,transPh.n,transPh.ph_end,transPh.ph_start,transPh.t_change,transPh.t_duration,trsSignal[1].coef,trsSignal[1].s_end,trsSignal[1].s_start,trsSignal[1].t_change,trsSignal[1].t_duration,trsSignal[2].coef,trsSignal[2].s_end,trsSignal[2].s_start,trsSignal[2].t_change,trsSignal[2].t_duration,voltage.S_nom,voltage.V_base,voltage.V_nom,voltage.alpha0,voltage.f,voltage.fType,voltage.pol,voltage.puUnits,voltage.use_vPhasor_in,voltage.v0eff,zLoadAC.S_base,zLoadAC.S_nom,zLoadAC.V2_nom,zLoadAC.V_nom,zLoadAC.Z_start[1],zLoadAC.Z_start[2],zLoadAC.dynType,zLoadAC.i_start,zLoadAC.pq0[1],zLoadAC.pq0[2],zLoadAC.psi_start,zLoadAC.puUnits,zLoadAC.use_pq_in,zLoadAC.v_start