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.0007138/0.0007139, allocations: 92.25 kB / 16.65 MB, free: 6.59 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.0007812/0.0007812, allocations: 182.4 kB / 17.56 MB, free: 6.203 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.182/1.182, allocations: 223.3 MB / 241.6 MB, free: 188 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1564/0.1564, allocations: 38.1 MB / 330.8 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000257/0.0002569, allocations: 8 kB / 400.7 MB, free: 34.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08566/0.08593, allocations: 59.17 MB / 459.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.004339/0.0903, allocations: 4.471 MB / 464.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001639/0.09196, allocations: 1.103 MB / 465.5 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003549/0.09234, allocations: 23.88 kB / 465.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.09252, allocations: 39.69 kB / 465.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005198/0.09305, allocations: 191.1 kB / 465.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.09328, allocations: 79.92 kB / 465.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005884/0.09388, allocations: 0.6309 MB / 466.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.09408, allocations: 131.3 kB / 466.6 MB, free: 392 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.09435, allocations: 175.2 kB / 466.7 MB, free: 216 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.09471, allocations: 239.1 kB / 467 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.689e-05/0.09476, allocations: 12 kB / 467 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.68e-05/0.09481, allocations: 16 kB / 467 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001/0.09492, allocations: 103.7 kB / 467.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.09508, allocations: 184.8 kB / 467.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002766/0.09537, allocations: 346.6 kB / 467.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.09537, allocations: 0 / 467.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.09538, allocations: 3.984 kB / 467.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.09539, allocations: 0 / 467.6 MB, free: 15.32 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.0009882/0.09639, allocations: 0.6478 MB / 468.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.525e-05/0.09642, allocations: 8.031 kB / 468.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.495e-05/0.09649, allocations: 40.47 kB / 468.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004907/0.09699, allocations: 383.1 kB / 468.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.09702, allocations: 16.56 kB / 468.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.394e-05/0.09707, allocations: 28 kB / 468.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004609/0.09753, allocations: 364.7 kB / 469.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.09755, allocations: 0 / 469.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.676e-05/0.09758, allocations: 12 kB / 469.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.0976, allocations: 4 kB / 469.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003562/0.09796, allocations: 266 kB / 469.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.09945, allocations: 1.442 MB / 470.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.09968, allocations: 161 kB / 471 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.0998, allocations: 81.73 kB / 471 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.09982, allocations: 3.984 kB / 471 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.09985, allocations: 38.5 kB / 471.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.173e-06/0.09986, allocations: 0 / 471.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009751/0.1008, allocations: 0.6837 MB / 471.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.1009, allocations: 81.11 kB / 471.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.1012, allocations: 300.5 kB / 472.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.1012, allocations: 25.7 kB / 472.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.1013, allocations: 223.5 kB / 472.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.94e-05/0.1013, allocations: 51.27 kB / 472.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.847e-05/0.1014, allocations: 29.7 kB / 472.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1015, allocations: 338.8 kB / 472.8 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.1016, allocations: 63.98 kB / 472.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.1018, allocations: 176.7 kB / 473 MB, free: 9.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002688/0.1021, allocations: 260.1 kB / 473.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1021, allocations: 0 / 473.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00036/0.1024, allocations: 284.9 kB / 473.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.1025, allocations: 10.19 kB / 473.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1025, allocations: 0 / 473.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.1025, allocations: 8 kB / 473.6 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.1027, allocations: 64.33 kB / 473.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.1027, allocations: 4 kB / 473.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.1029, allocations: 11.91 kB / 473.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.1029, allocations: 19.98 kB / 473.7 MB, free: 8.801 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.0001352/0.103, allocations: 169.6 kB / 473.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.885e-05/0.1031, allocations: 27.66 kB / 473.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000336/0.1034, allocations: 231.5 kB / 474.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1035, allocations: 0 / 474.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.1035, allocations: 0 / 474.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1035, allocations: 15.98 kB / 474.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006662/0.1041, allocations: 0.624 MB / 474.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.1042, allocations: 0 / 474.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.1043, allocations: 31.98 kB / 474.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.1044, allocations: 7.938 kB / 474.8 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.1044, allocations: 4 kB / 474.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1044, allocations: 4 kB / 474.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1044, allocations: 0 / 474.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004403/0.1048, allocations: 420.7 kB / 475.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.096e-05/0.1049, allocations: 112.8 kB / 475.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.1049, allocations: 0 / 475.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.1051, allocations: 11.98 kB / 475.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.191e-05/0.1051, allocations: 19.86 kB / 475.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.1052, allocations: 8.062 kB / 475.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001838/0.1053, allocations: 215 kB / 475.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1054, allocations: 3.938 kB / 475.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.1057, allocations: 60 kB / 475.6 MB, free: 6.742 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 9.159e-05/0.1058, allocations: 107.2 kB / 475.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000276/0.106, allocations: 183.2 kB / 475.9 MB, free: 6.453 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1061, allocations: 4.125 kB / 475.9 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.1062, allocations: 91.88 kB / 476 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004758/0.1067, allocations: 58.25 kB / 476 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009239/0.1076, allocations: 0.8161 MB / 476.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.1079, allocations: 0.8067 MB / 477.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00017/0.1081, allocations: 54.94 kB / 477.7 MB, free: 4.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.747e-05/0.1082, allocations: 27.38 kB / 477.7 MB, free: 4.535 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1082, allocations: 4 kB / 477.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of Templates: time 0.005421/0.1136, allocations: 2.811 MB / 480.6 MB, free: 1.75 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