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.000873/0.0008729, allocations: 88.19 kB / 16.3 MB, free: 5.656 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.001057/0.001057, allocations: 183 kB / 17.19 MB, free: 5.59 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.29/1.29, allocations: 223.2 MB / 241.1 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2681/0.2681, allocations: 38.07 MB / 330.3 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002873, allocations: 8 kB / 400 MB, free: 9.281 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2785, allocations: 59.16 MB / 459.1 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.003585/0.2821, allocations: 4.117 MB / 463.2 MB, free: 27.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.2835, allocations: 1.088 MB / 464.3 MB, free: 26.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001864/0.2837, allocations: 21.09 kB / 464.4 MB, free: 26.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.2839, allocations: 59.48 kB / 464.4 MB, free: 26.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004333/0.2843, allocations: 204.6 kB / 464.6 MB, free: 26.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.2846, allocations: 113.8 kB / 464.7 MB, free: 26.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003101/0.2849, allocations: 271.3 kB / 465 MB, free: 26.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.2851, allocations: 112.2 kB / 465.1 MB, free: 26.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/0.2853, allocations: 158.9 kB / 465.2 MB, free: 26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002782/0.2856, allocations: 183.6 kB / 465.4 MB, free: 25.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.332e-05/0.2856, allocations: 17.28 kB / 465.4 MB, free: 25.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.501e-05/0.2857, allocations: 14.38 kB / 465.5 MB, free: 25.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.2858, allocations: 96.16 kB / 465.6 MB, free: 25.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.221e-05/0.2859, allocations: 79.86 kB / 465.6 MB, free: 25.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002967/0.2862, allocations: 281.2 kB / 465.9 MB, free: 25.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.2862, allocations: 0 / 465.9 MB, free: 25.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2862, allocations: 0 / 465.9 MB, free: 25.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.2862, allocations: 1.188 kB / 465.9 MB, free: 25.78 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009607/0.2872, allocations: 0.6367 MB / 466.5 MB, free: 25.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.2873, allocations: 8.781 kB / 466.6 MB, free: 25.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.2873, allocations: 43.34 kB / 466.6 MB, free: 25.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005162/0.2878, allocations: 377.9 kB / 467 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.2879, allocations: 19.38 kB / 467 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.2879, allocations: 24.56 kB / 467 MB, free: 24.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004748/0.2884, allocations: 359.3 kB / 467.4 MB, free: 24.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.2884, allocations: 0 / 467.4 MB, free: 24.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.2885, allocations: 8.125 kB / 467.4 MB, free: 24.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.2885, allocations: 7.5 kB / 467.4 MB, free: 24.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004019/0.2889, allocations: 262 kB / 467.6 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.2904, allocations: 1.446 MB / 469.1 MB, free: 23.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.2907, allocations: 160.9 kB / 469.2 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.2907, allocations: 1.625 kB / 469.2 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.2907, allocations: 32.78 kB / 469.3 MB, free: 23.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.2907, allocations: 0 / 469.3 MB, free: 23.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009446/0.2917, allocations: 0.6767 MB / 469.9 MB, free: 22.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.2917, allocations: 83.88 kB / 470 MB, free: 22.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.292, allocations: 298.1 kB / 470.3 MB, free: 22.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.292, allocations: 25.7 kB / 470.3 MB, free: 22.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.2921, allocations: 225.3 kB / 470.6 MB, free: 22.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.82e-05/0.2922, allocations: 55.56 kB / 470.6 MB, free: 22.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.2922, allocations: 5.469 kB / 470.6 MB, free: 22.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.92e-05/0.2922, allocations: 341.1 kB / 471 MB, free: 22.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.2924, allocations: 67.94 kB / 471 MB, free: 22.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.2925, allocations: 163.8 kB / 471.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.2926, allocations: 92.2 kB / 471.3 MB, free: 21.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2926, allocations: 0 / 471.3 MB, free: 21.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003644/0.293, allocations: 286.7 kB / 471.5 MB, free: 21.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.293, allocations: 11.42 kB / 471.6 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.293, allocations: 3.125 kB / 471.6 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.2931, allocations: 5.531 kB / 471.6 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.2933, allocations: 60.62 kB / 471.6 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.2933, allocations: 6.172 kB / 471.6 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/0.2935, allocations: 13.72 kB / 471.6 MB, free: 21.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.2935, allocations: 10.45 kB / 471.7 MB, free: 21.78 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.2936, allocations: 167.7 kB / 471.8 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.726e-05/0.2937, allocations: 29.39 kB / 471.9 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003676/0.2941, allocations: 242.5 kB / 472.1 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2941, allocations: 2.156 kB / 472.1 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.2941, allocations: 1.094 kB / 472.1 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2941, allocations: 2.375 kB / 472.1 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000691/0.2948, allocations: 0.6218 MB / 472.7 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2948, allocations: 0 / 472.7 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.295, allocations: 39.48 kB / 472.8 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.295, allocations: 0.9062 kB / 472.8 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.295, allocations: 11.12 kB / 472.8 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.2951, allocations: 2.188 kB / 472.8 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.2951, allocations: 0 / 472.8 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004635/0.2955, allocations: 452 kB / 473.2 MB, free: 20.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.446e-05/0.2956, allocations: 99.3 kB / 473.3 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.2957, allocations: 6.438 kB / 473.3 MB, free: 20.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001512/0.2958, allocations: 9.016 kB / 473.3 MB, free: 20.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/0.2959, allocations: 18.02 kB / 473.3 MB, free: 20.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.2959, allocations: 8.062 kB / 473.3 MB, free: 20.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.2961, allocations: 211.4 kB / 473.6 MB, free: 20.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2961, allocations: 3.938 kB / 473.6 MB, free: 20.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003309/0.2964, allocations: 60 kB / 473.6 MB, free: 20.53 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.029e-05/0.2965, allocations: 103.4 kB / 473.7 MB, free: 20.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003089/0.2968, allocations: 187.1 kB / 473.9 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2968, allocations: 0 / 473.9 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.2969, allocations: 92.08 kB / 474 MB, free: 20.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.2973, allocations: 55.56 kB / 474 MB, free: 20.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009744/0.2983, allocations: 0.8081 MB / 474.9 MB, free: 19.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.2987, allocations: 0.8136 MB / 475.7 MB, free: 19.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001882/0.2989, allocations: 51.39 kB / 475.7 MB, free: 19.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.439e-05/0.2989, allocations: 25.34 kB / 475.7 MB, free: 19.1 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.299, allocations: 0 / 475.7 MB, free: 19.1 MB / 350.1 MB Notification: Performance of Templates: time 0.006315/0.3053, allocations: 2.733 MB / 478.5 MB, free: 18.18 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../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